-
Notifications
You must be signed in to change notification settings - Fork 167
42 lines (39 loc) · 1.08 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Run CI
on:
push:
branches:
- master
pull_request:
env:
TZ: Asia/Singapore
NODE_OPTIONS: --max_old_space_size=8192
GENERATE_SOURCEMAP: false
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
commands: [tsc, 'format:ci', eslint, build, test, test-coveralls]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies (apt)
run: |
sudo apt-get update && \
sudo apt-get install -y --no-install-recommends \
libxi-dev libgl1-mesa-dev
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run command
run: yarn run ${{ matrix.commands }}
- name: Coveralls - Upload test coverage report
if: matrix.commands == 'test-coveralls'
uses: coverallsapp/github-action@master
with:
path-to-lcov: lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}