mirror of
https://github.com/walles/moar.git
synced 2024-08-17 16:00:22 +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:
parent
c07471349e
commit
8f7f03f9dc
18
.github/workflows/linux-ci.yml
vendored
Normal file
18
.github/workflows/linux-ci.yml
vendored
Normal 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
13
.github/workflows/windows-ci.yml
vendored
Normal 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 ./...
|
27
.travis.yml
27
.travis.yml
@ -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 ./...
|
Loading…
Reference in New Issue
Block a user