From 674b56a53d2ea2070ab159e4bb5eedfadbe8a46e Mon Sep 17 00:00:00 2001 From: Deluan Date: Sat, 5 Sep 2020 15:10:21 -0400 Subject: [PATCH] Install taglib in `lint` and `go` jobs --- .github/workflows/pipeline.yml | 91 +++++++++++++++++----------------- 1 file changed, 46 insertions(+), 45 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index e81ca9be..246a20f8 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -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