Skip to content

Commit 7923e68

Browse files
committed
Running backend unit test on GH Actions.
1 parent aee61fa commit 7923e68

File tree

2 files changed

+24
-38
lines changed

2 files changed

+24
-38
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
unit-tests-backend:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v4
17+
with:
18+
go-version: '1.21'
19+
cache-dependency-path: bugtracker-backend/go.sum
20+
21+
- name: Execute Backend Unit Tests
22+
working-directory: ./bugtracker-backend
23+
run: |
24+
go test -v ./...

.github/workflows/first-workflow.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)