Update go.yml #352
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: Install Brew dependencies | |
run: | | |
brew bundle | |
- name: Setup Golang caches | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-golang- | |
- name: cache deno.land dependencies | |
uses: actions/cache@v2 | |
with: | |
key: ${{ runner.os }}-deno-${{ hashFiles('**/*') }} | |
restore-keys: ${{ runner.os }}-deno- | |
path: | | |
/home/runner/.cache/deno | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test -v ./... |