-
Notifications
You must be signed in to change notification settings - Fork 5
68 lines (55 loc) · 1.59 KB
/
pr.yml
File metadata and controls
68 lines (55 loc) · 1.59 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
59
60
61
62
63
64
65
66
67
68
name: Pull Request
on:
pull_request:
types: [opened, edited, reopened, synchronize]
branches: [ main ]
permissions:
contents: read
jobs:
get-configs:
uses: ./.github/workflows/configs.yml
pr-build-test-nodejs:
needs: [ get-configs ]
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v5
- name: Setup Node.js ${{ needs.get-configs.outputs.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ needs.get-configs.outputs.node-version }}
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Code Quality
run: npm run lint && npm run check:duplicates
- name: Test
run: npm run test
pr-build-test-go:
needs: [ get-configs ]
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- name: Setup Go ${{ needs.get-configs.outputs.go-version }}
uses: actions/setup-go@v6
with:
go-version: ${{ needs.get-configs.outputs.go-version }}
cache-dependency-path: cfn-init/go.sum
- name: Build
shell: bash
run: GOPROXY=direct go build -C ./cfn-init ./...
- name: Test
shell: bash
run: GOPROXY=direct go test -C ./cfn-init -v -cover ./...