24 lines
647 B
YAML
24 lines
647 B
YAML
|
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'
|