Run the tests against a Grist instance #26
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: Run the tests against a Grist instance | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- grist-deployment-tests/ | |
pull_request: | |
branches: | |
- main | |
# Allows running this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: deployment tests | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
- name: Install dependencies | |
run: | | |
cd grist-deployment-tests | |
npm install | |
- name: Run the API tests | |
shell: bash | |
env: | |
GRIST_DOMAIN: ${{ secrets.GRIST_DOMAIN }} | |
USER_API_KEY: ${{ secrets.USER_API_KEY }} | |
run: | | |
cd grist-deployment-tests | |
npm run test:api | |
- name: Run the e2e tests | |
shell: bash | |
env: | |
GRIST_DOMAIN: ${{ secrets.GRIST_DOMAIN }} | |
run: | | |
cd grist-deployment-tests | |
npm run test:e2e:ci |