From 0451fe3925a7f6d801c6086974b35c768d01ab23 Mon Sep 17 00:00:00 2001 From: Dormeh Date: Mon, 25 Dec 2023 12:57:17 +0300 Subject: [PATCH] adds git workflow for testing on PR and push master --- .github/workflows/checks.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/checks.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 00000000..9a9316e1 --- /dev/null +++ b/.github/workflows/checks.yml @@ -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() +