Update workflows to use reusable-workflows

This commit is contained in:
IvanZosimov
2022-12-15 13:47:58 +01:00
parent 10dc265f2c
commit 6d0109286a
6 changed files with 24 additions and 97 deletions

View File

@@ -1,4 +1,5 @@
name: Build & Test
on:
pull_request:
paths-ignore:
@@ -11,27 +12,10 @@ on:
- '**.md'
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Format, lint, build and test
run: npm run all:ci
call-basic-validation:
name: Basic validation
#uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main
uses: IvanZosimov/reusable-workflows/.github/workflows/basic-validation.yml@main
dry-run-test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest