generated from p6m7g8/p6-template-cdk-construct-eslint-yarn-ts-flatfile
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.17 KB
/
build.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
name: Build
on:
pull_request: {}
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
container:
image: jsii/superchain:1-bookworm-slim-node22
steps:
- name: Checkout code
uses: actions/checkout@v4.2.2
- name: Restore NPM node_modules
uses: actions/cache/restore@v4.1.2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install node_modules
run: |
sudo corepack enable
yarn install
- name: Cache NPM dependencies
uses: actions/cache@v4.1.2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Run build
run: yarn run ci:gha
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.6.0
with:
directory: coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Run Package
run: yarn run jsii:pacmak:parallel