You've already forked img-proxy-url-generator
added tests
updated go version and packages
This commit is contained in:
27
.github/workflows/tests.yml
vendored
Normal file
27
.github/workflows/tests.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Go Tests
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [ '1.22.x' ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
- name: Install dependencies
|
||||
run: go get .
|
||||
- name: Test with Go
|
||||
run: go test ./... -json -cover > TestResults-${{ matrix.go-version }}.json
|
||||
- name: Upload Go test results
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Go-results-${{ matrix.go-version }}
|
||||
path: TestResults-${{ matrix.go-version }}.json
|
||||
Reference in New Issue
Block a user