-
Notifications
You must be signed in to change notification settings - Fork 500
53 lines (45 loc) · 1019 Bytes
/
unit_tests.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
50
51
52
53
name: Unit Tests
on:
pull_request:
branches:
- main
workflow_dispatch:
inputs:
branch:
description: 'Branch name'
required: true
default: 'main'
jobs:
unit-tests:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '^1.22'
- name: Yarn install
uses: borales/actions-yarn@v4
with:
cmd: install
dir: 'frontend'
- name: Yarn build
uses: borales/actions-yarn@v4
with:
cmd: build
dir: 'frontend'
- name: Install dependencies
run: |
echo "Installing dependencies ..."
go mod tidy
- name: Run Go unit tests
run: |
echo "Running go unit tests ..."
go test -v -cover ./...
- name: Run Vue unit tests
run: |
echo "Running vue unit tests ..."
cd 'frontend'
yarn test