-
Notifications
You must be signed in to change notification settings - Fork 22
38 lines (30 loc) · 992 Bytes
/
dotnet.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: Build and test dotnet
on:
push:
branches: ["production"]
paths: ["dotnet/**"] # only run if there were changes in the dotnet folder
workflow_dispatch:
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Install .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.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: .NET Build
run: npm run build:nuget
- name: .NET Test
run: npm run test:nuget