Security performance improvements #1
No files matched your search
@@ -4,42 +4,9 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
- "security-performance-improvements"
|
||||
pull_request:
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
|
||||
- name: go mod download
|
||||
run: go mod download
|
||||
|
||||
- name: go build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: go vet
|
||||
run: go vet ./...
|
||||
|
||||
- name: gofmt check
|
||||
run: test -z "$(gofmt -l .)" || (echo "gofmt issues found:" && gofmt -l . && exit 1)
|
||||
|
||||
- name: go test
|
||||
run: go test -v ./...
|
||||
|
||||
build:
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: registry.rznet.fr/tchivert/ubuntu:act-latest
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
name: test
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
|
||||
- name: go mod download
|
||||
run: go mod download
|
||||
|
||||
- name: go build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: go vet
|
||||
run: go vet ./...
|
||||
|
||||
- name: gofmt check
|
||||
run: test -z "$(gofmt -l .)" || (echo "gofmt issues found:" && gofmt -l . && exit 1)
|
||||
|
||||
- name: go test
|
||||
run: go test -v ./...
|
||||
Reference in new issue
Block a user