Giving Course Lecturers the Rights to Send out Mails #264
Workflow file for this run
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: Go Test | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
directory: [ 'server' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
cache-dependency-path: "**/*.sum" | |
- name: Install dependencies | |
run: cd ${{ matrix.directory }} && go mod download | |
- name: Test with Go | |
env: | |
TESTCONTAINERS_RYUK_DISABLED: "true" | |
run: cd ${{ matrix.directory }} && go test ./... -json > TestResults-${{ matrix.directory }}.json | |
- name: Upload Go test results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Go-results-${{ matrix.directory }} | |
path: ./${{ matrix.directory }}/TestResults-${{ matrix.directory }}.json |