-
Notifications
You must be signed in to change notification settings - Fork 170
46 lines (44 loc) · 953 Bytes
/
branch-pr-release.yaml
File metadata and controls
46 lines (44 loc) · 953 Bytes
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
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 18.x
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Setup NPM
run: |
npm install
npm run compile
- name: Setup cfn-lint
run: |
pip install cfn-lint
pip install pydot
- run: npm run lint
- run: npm run prettier
if: runner.os == 'Linux'
- run: xvfb-run -a npm run test
if: runner.os == 'Linux'
- run: npm run test
if: runner.os != 'Linux'