Skip to content

build(deps-dev): bump @babel/core in /src/handler/webui #469

build(deps-dev): bump @babel/core in /src/handler/webui

build(deps-dev): bump @babel/core in /src/handler/webui #469

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- uses: actions/setup-node@v4
with:
node-version: 17
- run: make
test-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 17
- run: cd src/handler/webui && npm ci
- run: cd src/handler/webui && npm run test
test-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- run: mkdir -p src/handler/webui/build/release
- run: touch src/handler/webui/build/release/NOFILES
- run: sudo apt update
- run: sudo apt install mpd mpc
- run: sudo cp -r ./testdata $(sudo sed -n 's/^music_directory\s\+"\(.\+\)"/\1/p' /etc/mpd.conf)
- run: |
echo -e '
max_connections "100"
audio_output {
type "null"
name "My Null Output"
mixer_type "software"
}' | sudo tee -a /etc/mpd.conf
- run: sudo service mpd restart
- run: sleep 2
- run: mpc update --wait
- run: go test -race -cover ./src/...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- run: mkdir -p src/handler/webui/build/release
- run: touch src/handler/webui/build/release/NOFILES
- run: gofmt -s -d ./src/
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
conventional-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: pip3 install -U Commitizen
# The commit hash here is that of the commit where we started using conventional commits.
- run: cz check --rev-range 03839a86..HEAD