From 1a82de5b1f8dc12e6a84be8693ba6425c0113f9f Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Wed, 26 Jan 2022 21:20:23 -0500 Subject: [PATCH] ci: update preset workflows [skip ci] --- .github/workflows/ci.presets.yml | 12 ++++++++++-- .github/workflows/ci.test.yml | 30 ------------------------------ 2 files changed, 10 insertions(+), 32 deletions(-) delete mode 100644 .github/workflows/ci.test.yml diff --git a/.github/workflows/ci.presets.yml b/.github/workflows/ci.presets.yml index fe225103..9cc806aa 100644 --- a/.github/workflows/ci.presets.yml +++ b/.github/workflows/ci.presets.yml @@ -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 diff --git a/.github/workflows/ci.test.yml b/.github/workflows/ci.test.yml deleted file mode 100644 index 9cc806aa..00000000 --- a/.github/workflows/ci.test.yml +++ /dev/null @@ -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