CI: update CI workflow name and add badge for Regex Engine CI in README #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Monkey Interpreter CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
test: | |
name: Test and Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. | |
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | |
- name: Setup go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'monkey/go.mod' | |
# 'swap' compiler with interpreter, for coverage (because pushing changes to repo by gh actions causes erorrs) | |
- name: Run Test | |
run: | | |
cd monkey/interpreter | |
go test ./... |