Skip to content

Commit

Permalink
Add tests.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
itsubaki committed Jul 3, 2024
1 parent 72ef302 commit e918279
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: tests

on:
push:
branches:
- main

jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false

- name: Unit Tests
run: |
make test
- name: Lex
run: |
make lex
- name: Parse
run: |
make parse
- name: Run testdata
run: |
make testdata
- name: Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit e918279

Please sign in to comment.