ci: update workflows [skip ci]
This commit is contained in:
30
.github/workflows/ci.presets.yml
vendored
30
.github/workflows/ci.presets.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
|
||||
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -150,6 +150,12 @@ jobs:
|
||||
TWITTER_TOKEN: ${{ secrets.TWITTER_TOKEN }}
|
||||
WAKATIME_TOKEN: ${{ secrets.WAKATIME_TOKEN }}
|
||||
|
||||
# Publish examples (presets)
|
||||
publish-examples-presets:
|
||||
name: Publish examples (presets)
|
||||
needs: [ docker-master ]
|
||||
uses: lowlighter/metrics/.github/workflows/examples.presets.yml@master
|
||||
|
||||
# Build docker image from master and publish it to GitHub registry with release tag
|
||||
docker-release:
|
||||
name: Publish release to GitHub registry
|
||||
|
||||
7
.github/workflows/examples.presets.yml
vendored
7
.github/workflows/examples.presets.yml
vendored
@@ -1,10 +1,9 @@
|
||||
name: Publish examples (presets)
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 16 1/2 * *"
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- presets
|
||||
|
||||
workflow_call:
|
||||
jobs:
|
||||
examples:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
1
.github/workflows/test.presets.yml
vendored
1
.github/workflows/test.presets.yml
vendored
@@ -15,6 +15,7 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: master
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user