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

21 lines
576 B
YAML
Raw Normal View History

2023-01-28 22:55:14 +01:00
on: [push, pull_request]
name: Test
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
2023-11-26 06:12:18 +01:00
uses: actions/setup-go@main
2023-01-28 22:55:14 +01:00
with:
2023-11-26 06:12:18 +01:00
go-version: 1.21.x
- uses: actions/checkout@main
2023-01-28 22:55:14 +01:00
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'