Install taglib in `lint` and `go` jobs
This commit is contained in:
parent
58a0c44600
commit
674b56a53d
|
@ -9,51 +9,52 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
# golangci-lint:
|
golangci-lint:
|
||||||
# name: Lint Server
|
name: Lint Server
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v2
|
- name: Install taglib
|
||||||
# - name: golangci-lint
|
run: sudo apt-get install libtag1-dev
|
||||||
# uses: golangci/golangci-lint-action@v1
|
|
||||||
# with:
|
- uses: actions/checkout@v2
|
||||||
# version: v1.27
|
|
||||||
# github-token: ${{ secrets.GITHUB_TOKEN }}
|
- name: golangci-lint
|
||||||
# args: --timeout 2m
|
uses: golangci/golangci-lint-action@v1
|
||||||
#
|
with:
|
||||||
# go:
|
version: v1.27
|
||||||
# name: Test Server on ${{ matrix.os }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# runs-on: ${{ matrix.os }}
|
args: --timeout 2m
|
||||||
# strategy:
|
|
||||||
# matrix:
|
go:
|
||||||
# # TODO Fix tests in Windows
|
name: Test Server
|
||||||
# # os: [macOS-latest, ubuntu-latest, windows-latest]
|
runs-on: ubuntu-latest
|
||||||
# os: [macOS-latest, ubuntu-latest]
|
steps:
|
||||||
#
|
- name: Install taglib
|
||||||
# steps:
|
run: sudo apt-get install libtag1-dev
|
||||||
# - name: Set up Go 1.14
|
|
||||||
# uses: actions/setup-go@v1
|
- name: Set up Go 1.14
|
||||||
# with:
|
uses: actions/setup-go@v1
|
||||||
# go-version: 1.14
|
with:
|
||||||
# id: go
|
go-version: 1.14
|
||||||
#
|
id: go
|
||||||
# - name: Check out code into the Go module directory
|
|
||||||
# uses: actions/checkout@v2
|
- name: Check out code into the Go module directory
|
||||||
#
|
uses: actions/checkout@v2
|
||||||
# - uses: actions/cache@v1
|
|
||||||
# id: cache-go
|
- uses: actions/cache@v1
|
||||||
# with:
|
id: cache-go
|
||||||
# path: ~/go/pkg/mod
|
with:
|
||||||
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
path: ~/go/pkg/mod
|
||||||
# restore-keys: |
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
# ${{ runner.os }}-go-
|
restore-keys: |
|
||||||
#
|
${{ runner.os }}-go-
|
||||||
# - name: Download dependencies
|
|
||||||
# if: steps.cache-go.outputs.cache-hit != 'true'
|
- name: Download dependencies
|
||||||
# run: go mod download
|
if: steps.cache-go.outputs.cache-hit != 'true'
|
||||||
#
|
run: go mod download
|
||||||
# - name: Test
|
|
||||||
# run: go test -cover ./... -v
|
- name: Test
|
||||||
|
run: go test -cover ./... -v
|
||||||
js:
|
js:
|
||||||
name: Build JS bundle
|
name: Build JS bundle
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue