-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 909 Bytes
/
develop.yml
File metadata and controls
43 lines (35 loc) · 909 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
43
name: Develop branch
on:
workflow_dispatch:
push:
branches:
- develop
env:
NODE_VERSION: '24'
jobs:
build-and-unit-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Enable corepack to support yarn@4
run: corepack enable
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
# Main logic
- name: Install dependencies
run: yarn install --immutable
- name: Code checking
run: |
yarn generate
yarn lint
yarn ts-check
- name: Run tests
# add following to `yarn test`:
# --forceExit to bypass --detectOpenHandle error
run: |
yarn jest --ci --runInBand --env=node