TTime/.github/workflows/go.yml

34 lines
591 B
YAML
Raw Permalink Normal View History

2024-03-02 02:52:35 +01:00
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
2024-03-02 03:07:41 +01:00
defaults:
run:
working-directory: ./backend
2024-03-02 02:52:35 +01:00
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Build
2024-03-02 02:56:00 +01:00
run: go build -v ./...
2024-03-02 02:52:35 +01:00
- name: Test
2024-03-02 02:56:00 +01:00
run: go test -v ./...