multi-scrobbler/.github/workflows/dependabotTest.yml

34 lines
768 B
YAML

name: Test Dependabot PR
on:
pull_request_target:
types:
- synchronize
- reopened
- opened
branches:
- 'master'
jobs:
test:
name: Run Tests and Build (sanity)
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'npm'
- name: Install dev dependencies
run: npm ci
- name: Build Backend
run: 'npm run build:backend'
- name: Test Backend
run: npm run test
- name: Install Docs Deps
run: npm run docs:install
- name: Build
run: npm run build