chore: Migrate from CircleCI to GitHub Actions #8
Workflow file for this run
This file contains hidden or 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: Quality control | |
on: | |
push: | |
branches: [main, 'feat/**'] | |
paths-ignore: | |
- '**.md' # Do not need to run CI for markdown changes. | |
pull_request: | |
branches: [main, 'feat/**'] | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build-and-test: | |
strategy: | |
matrix: | |
version: [6.x, 7.x] | |
fail-fast: false | |
runs-on: ubuntu-latest | |
env: | |
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: true | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup dotnet build tools | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ matrix.version }} | |
- name: Restore Dependencies | |
run: dotnet restore | |
- name: Build | |
shell: bash | |
run: dotnet build | |
- name: Run Unit Tests | |
run: dotnet test |