chroma-markdown/.github/workflows/ci.yml

24 lines
647 B
YAML
Raw Normal View History

2023-01-28 22:55:14 +01:00
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.19.x]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
with:
path: './src/github.com/kevinburke/chroma-markdown'
# staticcheck needs this for GOPATH
- run: |
echo "GOPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
echo "PATH=$GITHUB_WORKSPACE/bin:$PATH" >> $GITHUB_ENV
- name: Run tests
run: make test
working-directory: './src/github.com/kevinburke/chroma-markdown'