update google analytics tracker #144
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: test backend | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: postgres | |
# 'google/dart-runtime:2.9-dev' | |
services: | |
# Label used to access the service container | |
postgres: | |
# Docker Hub image | |
image: postgres | |
# Provide the password for postgres | |
env: | |
POSTGRES_USER: authpass | |
POSTGRES_PASSWORD: blubb | |
POSTGRES_DB: authpass | |
# Set health checks to wait until postgres has started | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- run: apt-get update && apt-get install -y git unzip curl jq | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
# - name: create build number | |
# id: buildnumber | |
# env: | |
# GIT_AUTHOR_NAME: 'Github Action CI' | |
# GIT_AUTHOR_EMAIL: '[email protected]' | |
# GIT_COMMITTER_NAME: 'Github Action CI' | |
# GIT_COMMITTER_EMAIL: '[email protected]' | |
# run: | | |
# buildnumber=$(curl -s https://raw.githubusercontent.com/hpoul/git-buildnumber/v1.0/git-buildnumber.sh | bash /dev/stdin generate) | |
# echo "::set-output name=buildnumber::$buildnumber" | |
- uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: 3.2.5 | |
- run: cd packages/authpass_cloud_backend && dart pub get && dart run --enable-asserts bin/authpass_backend.dart setupdb | |
env: | |
DBCONFIG: '{"host": "postgres"}' | |
- run: _tools/test-coverage.sh | |
env: | |
DBCONFIG: '{"host": "postgres"}' | |
# - run: cd packages/authpass_cloud_backend && dart test | |
# env: | |
# DBCONFIG: '{"host": "postgres"}' | |
- run: mkdir schema && pg_dump -h postgres -s authpass -Uauthpass > schema/schema.sql | |
env: | |
PGPASSWORD: blubb | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: track-schema | |
publish_dir: ./schema |