1
1
mirror of https://github.com/walles/moar.git synced 2024-11-22 11:45:50 +03:00

Switch to GitHub Actions

Having to repeatedly re-affirm to Travis I'm still doing Open Source is
a nuisance.
This commit is contained in:
Johan Walles 2022-12-19 09:49:59 +01:00
parent c07471349e
commit 8f7f03f9dc
3 changed files with 31 additions and 27 deletions

18
.github/workflows/linux-ci.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Linux CI
on:
push:
branches: [master]
pull_request:
jobs:
validate:
runs-on: ubuntu-22.04
steps:
- name: Install golangci-lint
# golangci-lint is required by test.sh. Latest version here if you want
# to bump it, version number is at the end of the "curl | sh"
# commandline below:
# https://github.com/golangci/golangci-lint/releases/latest
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)"/bin v1.50.1
- run: ./test.sh

13
.github/workflows/windows-ci.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: Windows CI
on:
push:
branches: [master]
pull_request:
jobs:
validate:
runs-on: windows-2022
steps:
- run: go build
- run: go test -timeout 30s ./...

View File

@ -1,27 +0,0 @@
# From: https://blog.travis-ci.com/2022-01-28-pullrequests
#
# "Assuming you want to build all PRs, something like the following will do the
# trick":
if: (type = push AND branch = master) OR (type = pull_request)
language: go
go:
- 1.16.x
jobs:
include:
- os: linux
dist: xenial
script:
# golangci-lint is required by test.sh. Latest version here if you want
# to bump it, version number is at the end of the "curl | sh"
# commandline below:
# https://github.com/golangci/golangci-lint/releases/latest
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.48.0
- ./test.sh
- os: windows
script:
- go build
- go test -timeout 30s ./...