mirror of
https://github.com/walles/moar.git
synced 2024-12-02 09:15:46 +03:00
c648074c8a
For Go this means we get caching between runs. For Checkout this means that we now use a supported Node setup, making us not get warnings in the web UI.
29 lines
784 B
YAML
29 lines
784 B
YAML
name: Linux CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version-file: "go.mod"
|
|
|
|
# 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
|
|
- name: Install golangci-lint
|
|
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)"/bin v1.51.2
|
|
|
|
- run: ./test.sh
|
|
- run: GOARCH=386 ./test.sh
|