-
Notifications
You must be signed in to change notification settings - Fork 272
38 lines (33 loc) · 930 Bytes
/
infra.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
name: "Infra"
on:
push:
branches: [ '**' ]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
node-version: [ 16, 18 ]
infra-lib-name:
- infra-core
- infra-shared
- infra-functions
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/workflows/actions/setup
with:
node-version: ${{ matrix.node-version }}
- shell: bash
run: pnpm install
--include-workspace-root
--frozen-lockfile
--filter=${{ matrix.infra-lib-name }}...
- name: "${{ matrix.infra-lib-name }}: Lint"
shell: bash
run: node_modules/.bin/nx run ${{ matrix.infra-lib-name }}:lint
- name: "${{ matrix.infra-lib-name }}: Build"
shell: bash
run: node_modules/.bin/nx run ${{ matrix.infra-lib-name }}:build