test: add integration tests #263
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] | |
pull_request: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: yarn install --frozen-lockfile | |
- run: yarn build | |
- run: yarn test | |
e2e: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- uses: google-github-actions/setup-gcloud@v2 | |
with: | |
version: ">= 363.0.0" | |
# Run `info` to set up default credentials | |
- run: gcloud info | |
- run: gcloud auth list | |
- run: yarn install --frozen-lockfile | |
- run: yarn e2e |