Skip to content

Merge pull request #942 from GFDRR/always-close-browser #265

Merge pull request #942 from GFDRR/always-close-browser

Merge pull request #942 from GFDRR/always-close-browser #265

Workflow file for this run

---
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