-
Notifications
You must be signed in to change notification settings - Fork 43
58 lines (45 loc) · 1.24 KB
/
ci.yml
File metadata and controls
58 lines (45 loc) · 1.24 KB
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
50
51
52
53
54
55
56
57
58
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "20"
- uses: actions/setup-dotnet@v5
with:
dotnet-version: "6"
- name: npm ci
run: npm ci
- name: test
run: npm test
- name: lint
run: npm run lint
- name: prettier
run: npm run prettier
- if: runner.os == 'Linux'
name: Pack
run: npm pack
- if: runner.os == 'Linux'
name: Upload tarball
uses: actions/upload-artifact@v7
with:
path: "azure-oad-*.tgz"
archive: false
# Content copied from https://raw.githubusercontent.com/rhysd/actionlint/2ab3a12c7848f6c15faca9a92612ef4261d0e370/.github/actionlint-matcher.json
- if: runner.os == 'Linux'
name: Add ActionLint Problem Matcher
run: echo "::add-matcher::.github/matchers/actionlint.json"
- if: runner.os == 'Linux'
name: Lint workflows
uses: docker://rhysd/actionlint:1.7.11
with:
args: -color -verbose