-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (22 loc) · 894 Bytes
/
ci.yml
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
name: ci
on: [push, workflow_dispatch]
jobs:
build-and-test-job:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
env:
NODE_OPTIONS: '--max-old-space-size=3200'
# CC_TEST_REPORTER_ID: 59622194cc44d91d2d1d239dffbe6af31e8cb985e6e6369c0743b67ad2cc8713
steps:
- { uses: actions/checkout@v4, with: { persist-credentials: false } }
- { uses: actions/setup-node@v4, with: { node-version: 'lts/*', cache: 'yarn' } }
- name: deps
run: yarn --frozen-lockfile
- name: build
run: yarn build
- name: test
run: |
# curl -s -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter && chmod +x ./cc-test-reporter
# ./cc-test-reporter before-build
yarn test
# ./cc-test-reporter after-build -t lcov