Revise GitHub workflows (#9011)

* 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
This commit is contained in:
Pascal Jufer
2021-10-25 17:22:06 +02:00
committed by GitHub
parent d06abbd797
commit ae1987a359
11 changed files with 242 additions and 199 deletions

33
.github/workflows/unit-tests.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
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