Skip to content

chore(ci): fix ci workflow #50

chore(ci): fix ci workflow

chore(ci): fix ci workflow #50

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-bazel:
name: Test (Bazel)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v2
- uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel
- run: bazelisk test //... --test_output=errors
test-go:
name: Test (Go)
runs-on: ubuntu-latest
strategy:
matrix:
dir: [foo, lib]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: ${{ matrix.dir }}/go.mod
cache-dependency-path: ${{ matrix.dir }}/go.sum
cache: true
- run: |
go work sync
go test -v ${{ matrix.dir }}/...