-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (42 loc) · 1.18 KB
/
build-test.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
43
44
45
46
47
48
49
name: "build-test"
on:
pull_request:
defaults:
run:
shell: bash
jobs:
build:
name: Building & testing @bitwarden/sm-action for - ${{ matrix.settings.os }}
runs-on: ${{ matrix.settings.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
settings:
- os: macos-13
target: x86_64-apple-darwin
build: |
npm run dist
npm run test
- os: windows-2022
target: x86_64-pc-windows-msvc
build: |
npm run dist
npm run test
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
build: |
npm run dist
npm run test
steps:
- name: Checkout repo
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Setup Node
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 20
cache-dependency-path: "**/package-lock.json"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Build
run: ${{ matrix.settings.build }}