Skip to content

build(deps): bump codecov/codecov-action from 3.1.4 to 4.0.2 #297

build(deps): bump codecov/codecov-action from 3.1.4 to 4.0.2

build(deps): bump codecov/codecov-action from 3.1.4 to 4.0.2 #297

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: CI
on:
push:
branches: [master, next, beta, alpha, develop]
pull_request:
branches: [master, next, beta, alpha, develop]
permissions:
packages: write
contents: write
issues: write
pull-requests: write
env:
PRIMARY_NODE_VERSION: 18
jobs:
install:
name: Checkout and Install
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
uses: ./.github/actions/install
with:
node-version: ${{ env.PRIMARY_NODE_VERSION }}
lint:
name: lint Package
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
uses: ./.github/actions/install
with:
node-version: ${{ env.PRIMARY_NODE_VERSION }}
- name: Build
uses: ./.github/actions/build
- name: Lint
run: |
npm run lint
build:
name: Build Package
needs: [install]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
uses: ./.github/actions/install
with:
node-version: ${{ env.PRIMARY_NODE_VERSION }}
- name: Build
uses: ./.github/actions/build
tests:
name: Test Package
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
uses: ./.github/actions/install
with:
node-version: ${{ env.PRIMARY_NODE_VERSION }}
- name: Build
uses: ./.github/actions/build
- name: Run tests
run: |
npm run test
coverage:
name: Coverage
needs: [lint, tests]
runs-on: ubuntu-latest
if: ${{ github.ref_name == 'master' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
uses: ./.github/actions/install
with:
node-version: ${{ env.PRIMARY_NODE_VERSION }}
- name: Build
uses: ./.github/actions/build
- name: Coverage
run: |
npm run test:coverage
- name: Upload report
uses: codecov/codecov-action@v4.0.2
with:
token: ${{ secrets.codecov }}
directory: ./coverage/
release:
name: Release
needs: [ lint, tests ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
uses: ./.github/actions/install
with:
node-version: ${{ env.PRIMARY_NODE_VERSION }}
- name: Build
uses: ./.github/actions/build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release