-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (37 loc) · 841 Bytes
/
commit.yaml
File metadata and controls
39 lines (37 loc) · 841 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
name: Test Commit
on:
push:
branches: [master, develop]
pull_request:
jobs:
lint-test-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Use Node.js 22.x
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'yarn'
- name: Install dependencies
run: |
yarn install
cd examples
yarn install
cd ..
- name: Lint
run: yarn lint
- name: Unit tests
run: yarn test
env:
CI: true
- name: Typings test
run: yarn test:type
- name: Build
run: yarn build
env:
NODE_ENV: production
- name: Codecov
run: npx codecov -f coverage/*.json
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}