Skip to content

docs: update badges to devblac/gamifykit #16

docs: update badges to devblac/gamifykit

docs: update badges to devblac/gamifykit #16

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 43, Col: 1): 'name' is already defined, (Line: 44, Col: 1): 'on' is already defined, (Line: 50, Col: 1): 'jobs' is already defined
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Build, Test, Vet
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Go env
run: go env
- name: Build
run: go build ./...
- name: Test with coverage
run: go test ./... -coverprofile=coverage.out
- name: Vet
run: go vet ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: coverage.out
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
fail_ci_if_error: true
name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Download deps
run: go mod download
- name: Vet
run: go vet ./...
- name: Test (race)
run: go test -race -cover ./...
- name: Staticcheck
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
$(go env GOPATH)/bin/staticcheck ./...
- name: Gosec
run: |
go install github.com/securego/gosec/v2/cmd/gosec@latest
$(go env GOPATH)/bin/gosec ./...