Added Github Actions CI (#1)

This commit is contained in:
Evgeniy Scherbina 2023-12-15 11:30:48 -05:00 committed by GitHub
parent 81fd1b3cf9
commit 865db7194e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 23 deletions

43
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,43 @@
name: Continuous Integration (Default Checks)
on:
push:
pull_request:
workflow_dispatch:
env:
TEST_PACKAGES: ./...
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.4'
- name: run linter
run: go run build/ci.go lint
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.4'
- name: build all binaries from cmd
run: go run build/ci.go install
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.4'
- name: run tests
run: go run build/ci.go test $TEST_PACKAGES

View file

@ -1,23 +0,0 @@
name: i386 linux tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.4
- name: Run tests
run: go test ./...
env:
GOOS: linux
GOARCH: 386