🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Add JS tests/build to pipeline. Removed invalid test
Deluandf151d88a424
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 7dc30c329..e10fd87f2 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -1,8 +1,8 @@name: CIon: [push]jobs:- build:- name: Test on ${{ matrix.os }}+ go:+ name: Test Server on ${{ matrix.os }}runs-on: ${{ matrix.os }}strategy:matrix:@@ -19,8 +19,33 @@ jobs:uses: actions/checkout@v1- name: Download dependencies- run: |- go mod download+ run: go mod download- name: Testrun: go test -cover ./... -v++ js:+ name: Test UI+ runs-on: ubuntu-latest++ steps:+ - uses: actions/checkout@v1+ - uses: actions/setup-node@v1+ with:+ node-version: 12++ - name: npm install dependencies+ run: |+ cd ui+ npm ci++# TODO: Enable when there are tests to run+# - name: npm test+# run: |+# cd ui+# CI=test npm test++ - name: npm build+ run: |+ cd ui+ npm run builddiff --git a/ui/src/App.test.js b/ui/src/App.test.jsdeleted file mode 100644index 4a863755f..000000000--- a/ui/src/App.test.js+++ /dev/null@@ -1,9 +0,0 @@-import React from 'react'-import { render } from '@testing-library/react'-import App from './App'--test('renders learn react link', () => {- const { getByText } = render(<App />)- const linkElement = getByText(/learn react/i)- expect(linkElement).toBeInTheDocument()-})