-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (43 loc) · 1.16 KB
/
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
43
44
name: Sample CI
on: [ push, pull_request ]
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.x'
- name: Install Go dependencies
run: |
cd functions/Func_Jobs
go get .
cd ../job_history
go get .
- name: Build Go functions
run: |
go build -C functions/Func_Jobs
go build -C functions/job_history
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: ui/pages/scalable-rtr-react/yarn.lock
- name: Run yarn install
uses: borales/actions-yarn@v5
with:
cmd: install
dir: ui/pages/scalable-rtr-react
- name: Build React app
uses: borales/actions-yarn@v5
with:
cmd: build
dir: ui/pages/scalable-rtr-react
- name: Test the React app
uses: borales/actions-yarn@v5
with:
cmd: test
dir: ui/pages/scalable-rtr-react