Merge pull request #194 from damongolding/feature/more-into-overlay #1091
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: Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.5" # Specify the Go version you want to use | |
- name: Get dependencies | |
run: go mod download | |
- name: Install templ and generate | |
run: | | |
go install github.com/a-h/templ/cmd/templ@latest | |
templ generate | |
- name: Run tests | |
env: | |
CI: true | |
run: | | |
mkdir -p test-results | |
go test -v ./... > test-results/test.log | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: go-test-results | |
path: test-results/test.log |