Add activate modal and user settings for stage users #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Gating tests | |
on: | |
pull_request: | |
push: | |
branches: [main, devel] | |
env: | |
GITHUB_CI: true | |
jobs: | |
audit-and-build: | |
name: Audit and build | |
runs-on: ubuntu-latest | |
container: | |
image: fedora:latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- name: Audit dependencies | |
run: npx audit-ci --config audit-ci.json --skip-dev | |
- name: Cache dependencies | |
id: cache-deps | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: npm-${{ hashFiles('package-lock.json') }} | |
restore-keys: npm- | |
- name: Install project | |
run: npm install | |
- name: Prettier | |
run: npm run prettier | |
- name: Lint | |
run: npm run lint | |
- name: Build project | |
run: npm run build | |
- name: Upload dist folder | |
uses: actions/upload-artifact@v3 | |
with: | |
name: freeipa-webui-build | |
path: dist/ | |
integration-tests: | |
name: Integration tests | |
needs: audit-and-build | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: freeipa-webui-build | |
path: dist | |
- name: Cache Vagrant boxes | |
uses: actions/cache@v3 | |
with: | |
path: ~/.vagrant.d/boxes | |
key: ${{ runner.os }}-vagrant-${{ hashFiles('Vagrantfile') }} | |
restore-keys: | | |
${{ runner.os }}-vagrant- | |
- name: Run vagrant up | |
run: vagrant up --no-provision | |
- name: Run vagrant provision | |
run: vagrant provision | |
- name: Put IPA Server's IP to /etc/hosts | |
run: sudo echo "192.168.56.101 server.ipa.demo" | sudo tee -a /etc/hosts | |
- name: Run Cypress tests | |
uses: cypress-io/github-action@v5 | |
with: | |
browser: firefox | |
- name: Upload cypress screenshots | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots | |
- name: Upload cypress videos | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: cypress-videos | |
path: cypress/videos |