Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
build: merge github workflows into one
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimarimon committed Mar 11, 2024
1 parent 4ebad7c commit 133f44c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 54 deletions.
39 changes: 22 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build and Test

on:
push:
branches: ['main']
branches: [ 'main' ]
pull_request:
branches: ['main']
branches: [ 'main' ]

jobs:
analyse:
Expand All @@ -17,24 +17,29 @@ jobs:
security-events: write
strategy:
matrix:
node-version: [20.x]
node-version: [ 20.x ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install latest NPM
run: npm i -g npm@latest
- name: Install latest NPM
run: npm i -g npm@latest

- name: Install dependencies
run: npm ci
- name: Install dependencies
run: npm ci

- name: Build
run: npm run build
- name: Build
run: npm run build

- name: Run tests
run: npm run test
- name: Run tests and collect coverage
run: npm run coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage/cobertura-coverage.xml
36 changes: 0 additions & 36 deletions .github/workflows/codecov.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Recommended resources to look at:

## Filing Issues

Please search though open and closed issues to see if a similar issue already exists. If not, open an
Please search through open and closed issues to see if a similar issue already exists. If not, open an
issue and try to provide a minimal reproduction if you can.

## Pull Requests
Expand Down

0 comments on commit 133f44c

Please sign in to comment.