mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-02 21:45:40 +00:00
faed343eda
* fix session clearing on error * use singleton context to manage user state * implement remember-me functionality * fix errors * fix more errors
36 lines
822 B
YAML
36 lines
822 B
YAML
name: Go Build/Test
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
Go:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: "1.20"
|
|
|
|
- name: Install Task
|
|
uses: arduino/setup-task@v1
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v3
|
|
with:
|
|
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
|
|
version: latest
|
|
|
|
# Optional: working directory, useful for monorepos
|
|
working-directory: backend
|
|
args: --timeout=6m
|
|
|
|
- name: Build API
|
|
run: task go:build
|
|
|
|
- name: Test
|
|
run: task go:coverage
|