mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-15 19:50:37 +03:00
Install taglib in lint
and go
jobs
This commit is contained in:
parent
58a0c44600
commit
674b56a53d
91
.github/workflows/pipeline.yml
vendored
91
.github/workflows/pipeline.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user