ci: simplify tests #8
Workflow file for this run
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 - Website' | |
on: | |
pull_request: | |
paths: | |
- 'website/**' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Actions - Checkout | |
uses: actions/checkout@v3 | |
- name: Actions - Setup NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Cache Dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: npm-${{ hashFiles('package-lock.json') }} | |
restore-keys: npm- | |
- name: Installing Dependencies | |
run: cd website && npm ci | |
- name: Lint Checking | |
run: cd website && npm run lintcheck | |
- name: Checking Types | |
run: cd website && npm run typecheck | |
- name: Run Unit Tests | |
run: cd website && npm run test:unit | |
- name: Checking Build | |
run: cd website && npm run build |