mirror of
https://github.com/directus/directus.git
synced 2026-02-06 06:45:31 -05:00
* Fix check for changed files & reformat workflows * Test performance of paths-filter action * Revise workflows * Better wording * Fix naming of "Pre-Check" * Point out values * Abreviate to make it look cleaner in report
34 lines
637 B
YAML
34 lines
637 B
YAML
name: Unit Tests
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
test:
|
|
name: Test (Node.js ${{ matrix.node-version }})
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version:
|
|
- '16'
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build packages
|
|
run: npm run build
|
|
|
|
- name: Run tests
|
|
run: npm run test
|
|
env:
|
|
SECRET: TEST_SECRET
|