mirror of
https://github.com/actions/stale.git
synced 2026-01-06 20:47:18 +08:00
Update workflows to use reusable-workflows
This commit is contained in:
26
.github/workflows/build-test.yml
vendored
26
.github/workflows/build-test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user