-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (32 loc) · 852 Bytes
/
CI.yaml
File metadata and controls
42 lines (32 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
pull_request:
push:
branches: [main]
jobs:
deep-sea-stories:
runs-on: ubuntu-latest
defaults:
run:
working-directory: deep-sea-stories
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Enable corepack
run: corepack enable
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version-file: ./deep-sea-stories/package.json
cache: yarn
cache-dependency-path: ./deep-sea-stories/yarn.lock
- name: Install dependencies
run: yarn --immutable
- name: Run format
run: yarn format:check
- name: Run lint
run: yarn lint
- name: Run build
run: yarn build
- name: Run backend tests
run: yarn workspace @deep-sea-stories/backend test