ci: fix broken test

pull/1107/head
Ink33 4 years ago
parent 28a98f5d0a
commit acc2fb905d
No known key found for this signature in database
GPG Key ID: 5D8B1D036EFB0D2E

@ -13,35 +13,34 @@ jobs:
name: Test name: Test
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- name: Set up Go 1.17
- name: Set up Golang uses: actions/setup-go@v2
uses: actions/setup-go@v1 with:
with: go-version: "1.17"
go-version: 1.17 id: go
id: go
- name: Check out code into the Go module directory
- name: Check out code into the Go module directory uses: actions/checkout@v2
uses: actions/checkout@v2 with:
with: submodules: "recursive"
submodules: 'recursive'
- name: Build static files
- name: Get dependencies run: |
run: | cd assets
go get github.com/rakyll/statik yarn install
export PATH=$PATH:~/go/bin/ yarn run build
statik -src=models -f
- name: Test
- name: Test run: go test -coverprofile=coverage.txt -covermode=atomic ./...
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload binary files (linux_arm)
- name: Upload binary files (linux_arm) uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v2 with:
with: name: cloudreve_linux_arm
name: cloudreve_linux_arm path: release/cloudreve*linux_arm.*
path: release/cloudreve*linux_arm.*
- name: Upload binary files (linux_arm64)
- name: Upload binary files (linux_arm64) uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v2 with:
with: name: cloudreve_linux_arm64
name: cloudreve_linux_arm64 path: release/cloudreve*linux_arm64.*
path: release/cloudreve*linux_arm64.*

Loading…
Cancel
Save