Skip to content

Commit

Permalink
adds git workflow for testing on PR and push master
Browse files Browse the repository at this point in the history
  • Loading branch information
Dormeh committed Dec 25, 2023
1 parent 8e57cec commit 0451fe3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: building, linting, testing
on:
push:
branches: [ tests/ci/git_checks_before_merge ]
pull_request:
branches: [ master ]
jobs:
pipeline:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]

steps:
- uses: actions/checkout@v2
- name: Staring Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install modules
run: npm install
- name: build production project
run: npm run build:prod
if: always()
- name: linting typescript & css
run: npm run lint
if: always()
- name: build storybook
run: npm run storybook:build
if: always()

0 comments on commit 0451fe3

Please sign in to comment.