From 4940a0145f88979fb004f6560e154b3c7b4bbfbb Mon Sep 17 00:00:00 2001 From: mashal-m Date: Fri, 24 Feb 2023 23:25:52 +0500 Subject: [PATCH] refactor: add name of flow --- .github/workflows/ci.yml | 46 +++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a83d8dc..2a88f27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: - '**' jobs: - get-next-version: + name: Release Preview runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -22,23 +22,31 @@ jobs: outputs: new-release-published: ${{ steps.get-next-version.outputs.new-release-published }} new-release-version: ${{ steps.get-next-version.outputs.new-release-version }} - build: + tests: runs-on: ubuntu-latest - needs: next-version - if: needs.get-next-version.outputs.new-release-published == 'true' + strategy: + matrix: + node: [16] steps: - - uses: actions/checkout@v3 - - run: echo "The new release version is ${{ needs.get-next-version.outputs.new-release-version }}" - - release: - runs-on: ubuntu-latest - needs: build - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - - run: npm ci - - run: npx semantic-release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Setup Nodejs + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + - name: Install dependencies + run: npm ci + - name: Validate package-lock.json changes + run: make validate-no-uncommitted-package-lock-changes + - name: Lint + run: npm run lint + - name: Test + run: npm run test + - name: Build + run: npm run build + - name: i18n_extract + run: npm run i18n_extract + - name: Coverage + uses: codecov/codecov-action@v3 \ No newline at end of file