feat: add ci pipeline (#348) #6
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: Classroom ci | ||
on: [push, pull_request] | ||
jobs: | ||
build and test: | ||
Check failure on line 6 in .github/workflows/ci.yml GitHub Actions / Classroom ciInvalid workflow file
|
||
name: Build and test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [16.14.2] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.13.x | ||
cache: npm | ||
- name: Install modules | ||
run: npm ci | ||
- name: Run lint | ||
run: npm run lint:code | ||
- name: Run tests | ||
run: npm run test |