Skip to content

Update go.yml

Update go.yml #339

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: cache deno.land dependencies
uses: actions/cache@v2

Check failure on line 22 in .github/workflows/go.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/go.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
with:
key: ${{ runner.os }}-deno-${{ hashFiles('**/*') }}
restore-keys: ${{ runner.os }}-deno-
path: |
/home/runner/.cache/deno
- run: |
curl -L -o dhall-linux.tar.bz2 https://github.com/dhall-lang/dhall-haskell/releases/download/1.42.0/dhall-json-1.7.12-x86_64-linux.tar.bz2
tar -xvjf dhall-linux.tar.bz2
mv bin/* /usr/local/bin
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: typst-community/setup-typst@v3
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...