aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorGravatar Abhinav Gupta <mail@abhinavg.net> 2022-12-18 22:54:57 -0800
committerGravatar GitHub <noreply@github.com> 2022-12-18 22:54:57 -0800
commitc0f42eb71697afa1a100524d4a1787582ae3ab6c (patch)
tree77eaa2f4bc84901ddf46c019a7f15b08d9720903 /.github
parent32fcd7b23ea54233a947fffc53773a5a2520b8dc (diff)
downloadsally-c0f42eb71697afa1a100524d4a1787582ae3ab6c.tar.gz
sally-c0f42eb71697afa1a100524d4a1787582ae3ab6c.tar.zst
sally-c0f42eb71697afa1a100524d4a1787582ae3ab6c.zip
ci: Use Go 1.19 and update GH actions (#58)
This updates sally to build and test against Go 1.19. Additionally, this upgrades the GitHub Action versions for checkout and setup-go. One of the features in setup-go v3 is that caching is built-in and opted-into with `cache: true`. Non-CI changes: gofmt, drop ioutil
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/go.yml16
1 files changed, 5 insertions, 11 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index a038ee5..a8c53f6 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -13,21 +13,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- - name: Setup Go
- uses: actions/setup-go@v2
- with:
- go-version: 1.18.x
- name: Checkout code
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- - name: Load cached dependencies
- uses: actions/cache@v1
+ - name: Setup Go
+ uses: actions/setup-go@v3
with:
- path: ~/go/pkg/mod
- key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- restore-keys: |
- ${{ runner.os }}-go-
+ go-version: 1.19.x
+ cache: true
- name: Lint
run: make lint