Install taglib in `lint` and `go` jobs

This commit is contained in:
Deluan 2020-09-05 15:10:21 -04:00 committed by Deluan Quintão
parent 58a0c44600
commit 674b56a53d
1 changed files with 46 additions and 45 deletions

View File

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