Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
update .github/workflows/go-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
web3-bot committed Apr 3, 2023
1 parent c9f174a commit f69f981
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/go-check.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.

on: [push, pull_request]
on:
pull_request:
push:
branches: ["master"]
name: Go Checks

permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
cancel-in-progress: true

jobs:
unit:
Expand All @@ -17,9 +21,12 @@ jobs:
submodules: recursive
- id: config
uses: protocol/.github/.github/actions/read-config@master
- id: go-mod
# TODO: change ref to next before merging
uses: protocol/.github/.github/actions/read-go-mod@no-go
- uses: actions/setup-go@v3
with:
go-version: 1.20.x
go-version: ${{ fromJSON(steps.go-mod.outputs.json).Go }}.x
- name: Run repo-specific setup
uses: ./.github/actions/go-check-setup
if: hashFiles('./.github/actions/go-check-setup') != ''
Expand Down

0 comments on commit f69f981

Please sign in to comment.