14.2.2 #137
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
# .github/workflows/ci.yaml | |
# Lints and tests the server every time a commit is pushed to the remote | |
# repository. | |
name: CI | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v2 | |
- name: Setup PNPM 7 | |
uses: pnpm/action-setup@v2.0.1 | |
with: | |
version: 7 | |
- name: Setup Node 18 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org/' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Check for errors in code/formatting | |
run: pnpm lint | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v2 | |
- name: Setup PNPM 7 | |
uses: pnpm/action-setup@v2.0.1 | |
with: | |
version: 7 | |
- name: Setup Node 18 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org/' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Run all tests | |
run: pnpm test |