Skip to content

Commit

Permalink
#73 add updated workflows lint, test and build
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-serb committed Mar 5, 2023
1 parent a373af4 commit 039b8b6
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 76 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
name: Build

on:
workflow_call:
inputs:
os:
type: string
required: true
description: operating system
node-version:
type: string
required: true
description: node.js version
push:
branches:
- main
pull_request:
branches:
- main
- development
workflow_dispatch:

jobs:
build:

runs-on: ${{ inputs.os }}
strategy:
matrix:
node-version: [ 18.x ]
os: [ ubuntu-latest ]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ inputs.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm run build

30 changes: 17 additions & 13 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
name: Lint

on:
workflow_call:
inputs:
os:
type: string
required: true
description: operating system
node-version:
type: string
required: true
description: node.js version
push:
branches:
- main
pull_request:
branches:
- main
- development
workflow_dispatch:

jobs:
lint:

runs-on: ${{ inputs.os }}
strategy:
matrix:
node-version: [ 18.x ]
os: [ ubuntu-latest ]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ inputs.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm run lint

37 changes: 0 additions & 37 deletions .github/workflows/quality-checking.yml

This file was deleted.

30 changes: 17 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
name: Test

on:
workflow_call:
inputs:
os:
type: string
required: true
description: operating system
node-version:
type: string
required: true
description: node.js version
push:
branches:
- main
pull_request:
branches:
- main
- development
workflow_dispatch:

jobs:
test:

runs-on: ${{ inputs.os }}
strategy:
matrix:
node-version: [ 18.x ]
os: [ ubuntu-latest ]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ inputs.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm run test

0 comments on commit 039b8b6

Please sign in to comment.