-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 991 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
28
29
30
31
32
33
34
35
36
37
name: CI
on:
pull_request:
types: [opened, synchronize]
jobs:
test:
name: Test
timeout-minutes: 15
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
node-version: [18]
runs-on: ${{ matrix.platform }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Node.js ${{ matrix.node-version }} environment
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install
- name: Run linter
run: yarn run lint
- name: Build
run: yarn run build
# Uncomment if necessary
# For example to inspect the build applications
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: artifact_${{ matrix.platform }}
path: out/make
if-no-files-found: error