Add tests for RootLayout (#217) #94
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: [dev] | |
pull_request: | |
branches: [dev] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
environment: Preview # Required for picking correct environment secrets | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm install | |
- name: Lint | |
run: npm run lint:check | |
- name: Run tests | |
env: | |
VITE_GRAPHQL_API_URL: ${{ secrets.VITE_GRAPHQL_API_URL }} | |
run: npm run test |