mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-05 18:03:10 +03:00
Add JS tests/build to pipeline. Removed invalid test
This commit is contained in:
parent
bc33ace6d6
commit
df151d88a4
33
.github/workflows/ci.yml
vendored
33
.github/workflows/ci.yml
vendored
@ -1,8 +1,8 @@
|
|||||||
name: CI
|
name: CI
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
go:
|
||||||
name: Test on ${{ matrix.os }}
|
name: Test Server on ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -19,8 +19,33 @@ jobs:
|
|||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Download dependencies
|
- name: Download dependencies
|
||||||
run: |
|
run: go mod download
|
||||||
go mod download
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -cover ./... -v
|
run: 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 build
|
||||||
|
@ -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()
|
|
||||||
})
|
|
Loading…
x
Reference in New Issue
Block a user