fix: missing method #48
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 and coverage | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Go environment | |
uses: actions/[email protected] | |
with: | |
# The Go version to download (if necessary) and use. Supports semver spec and ranges. | |
go-version: 1.15 | |
# - name: Download Binary Files | |
# run: | | |
# mkdir -p $GITHUB_WORKSPACE/seaweedfs | |
# curl https://github.com/chrislusf/seaweedfs/releases/download/2.48/linux_amd64.tar.gz -o $GITHUB_WORKSPACE/seaweedfs/linux_amd64.tar.gz | |
# cd $GITHUB_WORKSPACE/seaweedfs | |
# ls -l | |
# tar -zxf linux_amd64.tar.gz | |
- name: Download Binary Files | |
uses: fabriciobastian/[email protected] | |
with: | |
# A specific release version. Defaults to latest | |
version: 2.48 # default is latest | |
# Relative path to the repository in the format user/repo e.g.: myuser/my-repository | |
repository: chrislusf/seaweedfs # default is | |
# The name of the asset to download from the release | |
file: linux_amd64.tar.gz | |
# Path to the directory where to download the asset | |
out: seaweedfs # optional, default is . | |
- name: Extract Binary Files | |
run: | | |
cd $GITHUB_WORKSPACE/seaweedfs | |
tar -zxf linux_amd64.tar.gz | |
- name: Validate Binary Files | |
run: | | |
cd $GITHUB_WORKSPACE/seaweedfs | |
ls -l weed | |
- name: Run Tests | |
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic -coverpkg github.com/crawlab-team/crawlab-fs | |
- name: Codecov | |
uses: codecov/[email protected] | |
with: | |
# Repository upload token - get it from codecov.io. Required only for private repositories | |
token: ${{ secrets.CODECOV_TOKEN }} | |
# Comma-separated list of files to upload |