mirror of
https://github.com/directus/directus.git
synced 2026-02-01 09:05:01 -05:00
41 lines
747 B
YAML
41 lines
747 B
YAML
name: Run tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node: ["16"]
|
|
name: Node ${{ matrix.node }}
|
|
steps:
|
|
- name: Cancel Previous Runs
|
|
uses: styfle/cancel-workflow-action@0.9.1
|
|
with:
|
|
access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
cache: npm
|
|
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
|
|
- name: Build Dependencies
|
|
run: npm run build
|
|
|
|
- name: Run Tests
|
|
run: npm run test
|
|
env:
|
|
SECRET: TEST_SECRET
|