generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (47 loc) · 1 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
43
44
45
46
47
48
49
name: CI
on:
pull_request_target:
paths:
- .github/workflows/ci.yml
- dist/**
- src/**
- action.yml
- package.json
- package-lock.json
push:
branches:
- main
jobs:
package:
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- run: npm ci
- run: npm run format-check
- run: npm run build
# - run: npm run lint
- run: npm run package
- name: Diff
run: |
git add -N .
git diff --exit-code
test:
if: false # TODO: Implement test
strategy:
matrix:
runner:
- ubuntu-22.04
- ubuntu-20.04
- macos-12
- macos-11
- windows-2022
- windows-2019
runs-on: ${{ matrix.runner }}
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- run: npm ci
- run: npm test