remove implicitlyWait #301
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: CI | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: any | |
cancel-in-progress: true | |
jobs: | |
test-server: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: server | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
cache: "maven" | |
- run: mvn test -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn | |
test-client: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: client | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "yarn" | |
cache-dependency-path: client/yarn.lock | |
- run: yarn --frozen-lockfile | |
- run: yarn test:ci | |
build-images: | |
needs: | |
- test-server | |
- test-client | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Get Ansible Vault key | |
run: | | |
mkdir .ansible | |
echo "${{ secrets.ANSIBLE_VAULT_KEY }}" > .ansible/vault_key | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
cache: "pip" # caching pip dependencies | |
- run: pip install -r requirements.txt | |
- uses: buildpacks/github-actions/setup-pack@v5.0.0 | |
- run: python scripts/build.py ${{ secrets.GITHUB_TOKEN }} | |
test-e2e: | |
needs: build-images | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: test | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
cache: "maven" | |
- run: node docker-compose.js | docker compose --file - up --wait --quiet-pull | |
- run: mvn test -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn | |
- run: node docker-compose.js | docker compose --file - logs | |
if: always() | |
deploy: | |
needs: test-e2e | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Get Ansible Vault key | |
run: | | |
mkdir .ansible | |
echo "${{ secrets.ANSIBLE_VAULT_KEY }}" > .ansible/vault_key | |
- run: pip install -r requirements.txt | |
- run: ansible-galaxy install -r galaxy-requirements.yaml | |
- run: scripts/provision.sh | |