-
Notifications
You must be signed in to change notification settings - Fork 22
42 lines (33 loc) · 1004 Bytes
/
main.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: CI
on:
push:
branches: [production]
pull_request:
branches: [production]
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Install .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x" # latest LTS build
- name: Install npm dependencies
run: npm ci
- name: Node Build
env:
FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }}
run: npm run build
- name: Run linters
run: npm run lint
- name: .NET Build
run: npm run build:nuget
- name: .NET test
run: npm run test:nuget