Skip to content

Commit

Permalink
feat(workflow): build should work for go
Browse files Browse the repository at this point in the history
  • Loading branch information
yyewolf committed Aug 10, 2023
1 parent 853b4d4 commit a87ed7d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Go
on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20.x'
cache-dependency-path: go.sum
- name: Install dependencies
run: cd backend && go mod download
- name: Build
run: cd backend && go build -v ./...
- name: Test with the Go CLI
run: cd backend && go test ./...

0 comments on commit a87ed7d

Please sign in to comment.