Skip to content

Commit

Permalink
Update and rename build.yml to test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HFO4 authored Mar 21, 2021
1 parent 595f4a1 commit a9c0d6e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 88 deletions.
88 changes: 0 additions & 88 deletions .github/workflows/build.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build

on:
push:
branches: [ master ]

jobs:

test:
name: Test
runs-on: ubuntu-16.04
steps:

- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: Get dependencies
run: |
go get github.com/rakyll/statik
export PATH=$PATH:~/go/bin/
statik -src=models -f
- 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.*

0 comments on commit a9c0d6e

Please sign in to comment.