From 5e664e79cdcb99e66292a3558265240be4440000 Mon Sep 17 00:00:00 2001 From: Meghea Iulian Date: Sat, 13 Jan 2024 10:44:01 +0200 Subject: [PATCH] chore: update workflow --- .github/workflows/workflow.yml | 52 ++++------------------------------ 1 file changed, 5 insertions(+), 47 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 824e5c8..bbdf45e 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,55 +1,13 @@ ---- -name: Github CI +name: CI on: pull_request: branches: - master push: branches: + - beta - master jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version: 16 - cache: 'npm' - - - name: Install - run: npm ci - - - name: Lint commit messages - uses: wagoid/commitlint-github-action@v3 - - - name: ESLint - run: npm run lint - - - name: Test and report - env: - CC_TEST_REPORTER_ID: ddf6d1f3167c22293c4eaabc562e1df4ba00542b7d27ff418e13a743903781d0 - GIT_BRANCH: ${{ github.ref == 'refs/heads/master' && 'master' || github.ref }} - GIT_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} - NEO_CC_URL: https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 - NEO_CC: ./cc-test-reporter - SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} - SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} - run: | - ([[ -e $NEO_CC ]] || curl -L $NEO_CC_URL > $NEO_CC) && chmod +x $NEO_CC - $NEO_CC before-build - echo "::add-matcher::.github/problem-matcher.json" - npm test - $NEO_CC after-build --exit-code $? - - - name: Semantic release - run: npx semantic-release - if: success() - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + build: + uses: Neovici/cfg/.github/workflows/forge.yml@master + secrets: inherit