build(deps-dev): Bump @babel/traverse from 7.19.4 to 7.23.2 #514
Workflow file for this run
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: CritiqueBrainz CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ '*' ] | |
jobs: | |
test: | |
name: Run test suite | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Create configuration file | |
run: cp custom_config.py.example custom_config.py | |
- name: Login to Docker Hub | |
run: echo ${{ secrets.DOCKER_HUB_PASSWORD }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin | |
continue-on-error: true | |
- name: Pull docker images | |
run: docker-compose -f docker/docker-compose.test.yml pull | |
- uses: satackey/[email protected] | |
continue-on-error: true | |
with: | |
key: critiquebrainz-prod-image-{hash} | |
restore-keys: | | |
critiquebrainz-prod-image- | |
- name: Run tests | |
run: ./test.sh | |
- name: Publish Test Results | |
uses: EnricoMi/[email protected] | |
if: ${{ always() }} | |
with: | |
files: reports/tests.xml | |
prod: | |
name: Build Production Image | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Login to Docker Hub | |
run: echo ${{ secrets.DOCKER_HUB_PASSWORD }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin | |
continue-on-error: true | |
- uses: satackey/[email protected] | |
continue-on-error: true | |
- name: Build production image | |
run: docker build --build-arg GIT_COMMIT_SHA=HEAD . |