-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1 KB
/
libs-backend.yaml
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: Backed libraries
on:
pull_request:
paths:
- "lib/go/**"
push:
branches:
- main
paths:
- "lib/go/**"
defaults:
run:
shell: bash
working-directory: ./
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go environment
uses: actions/setup-go@v4
with:
go-version: "1.22.1"
- name: Validate environment
run: |
echo "-------- node version -----"
node --version
echo "-------- npm version -----"
npm --version
echo "-------- yarn version -----"
yarn --version
echo "-------- go version -----"
go version
- name: Test backend
run: npx [email protected] -- turbo test:backend