Skip to content

Commit

Permalink
ci: rename ci.yml -> development.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Maarkis committed Jan 3, 2024
1 parent 157c899 commit aa5d063
Showing 1 changed file with 27 additions and 14 deletions.
41 changes: 27 additions & 14 deletions .github/workflows/ci.yml → .github/workflows/development.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,55 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: CI
name: Developtment

on:
- push
- pull_request
pull_request:
types:
- opened
- edited
- synchronize
- reopened
push:
workflow_call:

jobs:
build:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [ 16.x, 18.x, 20.x ]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version:
- 16.x
- 18.x
- 20.x
steps:
- uses: actions/checkout@v3
- name: Install pnpm
- name: ☁️ Checkout code
uses: actions/checkout@v3
- name: "\U0001F4E6 Install pnpm"
uses: pnpm/action-setup@v2
with:
version: latest
run_install: |
- recursive: true
args: [--frozen-lockfile]
- name: Use Node.js ${{ matrix.node-version }}
- name: "\U0001F527 Use Node.js ${{ matrix.node-version }}"
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Run test
node-version: '${{ matrix.node-version }}'
cache: pnpm
test:
needs: build
name: "\U0001F9EA Test Application"
runs-on: ubuntu-latest
steps:
- name: "\U0001F9EA Run test"
run: pnpm test
- name: Collect Coverage
- name: "\U0001F4CA Collect Coverage"
run: pnpm coverage
if: ${{ matrix.node-version == '16.x' }}
- name: Coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: '${{ secrets.CODECOV_TOKEN }}'
if: ${{ matrix.node-version == '16.x' }}

0 comments on commit aa5d063

Please sign in to comment.