Merge pull request #942 from GFDRR/always-close-browser #266
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: Continuous integration | |
on: | |
push: | |
jobs: | |
main: | |
name: Continuous integration | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
TX_TOKEN: ${{ secrets.TX_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: make build | |
- name: Lint | |
run: make check | |
- name: Tests | |
run: make test | |
- name: Publish to Docker hub | |
if: > | |
github.repository == 'GFDRR/thinkhazard' | |
&& success() | |
&& ( | |
startsWith(github.ref, 'refs/tags/') | |
|| github.ref == 'refs/heads/master' | |
) | |
run: | | |
docker login --username ${DOCKER_USERNAME} --password ${DOCKER_PASSWORD} | |
make docker-push | |
- name: Push to transifex | |
if: > | |
github.repository == 'GFDRR/thinkhazard' | |
&& success() | |
&& github.ref == 'refs/heads/master' | |
run: make transifex-push-ui |