You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1004 B
45 lines
1004 B
name: Test
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Set up Go 1.17
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: "1.17"
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: "recursive"
|
|
|
|
- name: Build static files
|
|
run: |
|
|
mkdir assets/build
|
|
touch assets/build/test.html
|
|
|
|
- name: Test
|
|
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
|
|
|
|
- name: Upload binary files (linux_arm)
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: cloudreve_linux_arm
|
|
path: release/cloudreve*linux_arm.*
|
|
|
|
- name: Upload binary files (linux_arm64)
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: cloudreve_linux_arm64
|
|
path: release/cloudreve*linux_arm64.*
|