Skip to content

Commit

Permalink
chore: simplified github action
Browse files Browse the repository at this point in the history
  • Loading branch information
angelxmoreno committed Jan 25, 2024
1 parent aa7c3c1 commit f879d58
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,17 @@ on:
branches: [ "main" ]

jobs:
build:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node.js and Yarn
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 18
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

Expand All @@ -29,25 +25,10 @@ jobs:
- name: Run tests and coverage
run: yarn test:coverage

upload-coverage:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
node-version: [18.x]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js and Yarn
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- name: Run build
run: yarn build

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit f879d58

Please sign in to comment.