build(deps-dev): bump @babel/preset-env from 7.25.4 to 7.26.0 in /src/handler/webui #520
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |