diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-06-21 13:04:13 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-06-21 13:04:21 -0400 |
| commit | 7b51d7855769a7e24763cd46bf2d68e008f680d2 (patch) | |
| tree | 0d6a6ac60e7bc228f987e42a5dbb3f30320b4169 /.github | |
| parent | 3693dc9d43d3216850b10dd91cc7bdef814c3dfc (diff) | |
| download | xesite-7b51d7855769a7e24763cd46bf2d68e008f680d2.tar.xz xesite-7b51d7855769a7e24763cd46bf2d68e008f680d2.zip | |
adopt homebrew
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/go.yml | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b40874e..18d3bb3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,10 +13,12 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.22' + - name: Set up Homebrew + uses: Homebrew/actions/setup-homebrew@master + + - name: Install Brew dependencies + run: | + brew bundle - name: cache deno.land dependencies uses: actions/cache@v2 @@ -25,20 +27,14 @@ jobs: 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 ./... + + - name: Ensure generated code is up to date + run: | + go generate ./... + git diff --exit-code || echo "The current tree is dirty, run 'go generate ./...' to fix it" |
