ci: update preset workflows [skip ci]
This commit is contained in:
12
.github/workflows/ci.presets.yml
vendored
12
.github/workflows/ci.presets.yml
vendored
@@ -1,11 +1,19 @@
|
||||
name: Continuous integration (presets)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ presets ]
|
||||
|
||||
jobs:
|
||||
|
||||
test:
|
||||
name: Build, test and analyze
|
||||
name: Test
|
||||
if: "!contains(github.event.head_commit.message, '[skip test]')"
|
||||
uses: lowlighter/metrics/.github/workflows/test.presets.yml@master
|
||||
|
||||
publish-examples:
|
||||
name: Publish examples
|
||||
needs: [ test ]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -19,4 +27,4 @@ jobs:
|
||||
- name: Setup metrics
|
||||
run: npm ci
|
||||
- name: Run tests
|
||||
run: npm run test-presets
|
||||
run: npm run test-presets -- publish
|
||||
|
||||
30
.github/workflows/ci.test.yml
vendored
30
.github/workflows/ci.test.yml
vendored
@@ -1,30 +0,0 @@
|
||||
name: Continuous integration (presets)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ presets ]
|
||||
|
||||
jobs:
|
||||
|
||||
test:
|
||||
name: Test
|
||||
if: "!contains(github.event.head_commit.message, '[skip test]')"
|
||||
uses: lowlighter/metrics/.github/workflows/test.presets.yml@master
|
||||
|
||||
publish-examples:
|
||||
name: Publish examples
|
||||
needs: [ test ]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 17
|
||||
- name: Setup metrics
|
||||
run: npm ci
|
||||
- name: Run tests
|
||||
run: npm run test-presets -- publish
|
||||
Reference in New Issue
Block a user