Feature/ui-test #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: linting, testing, building | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node_version: [17.x, 18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Staring NodeJS ${{matrix.node_version}} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{matrix.node_version}} | |
- name: install modules | |
run: npm ci | |
- name: linting typescript | |
run: npm run lint:ts | |
- name: linting scss | |
run: npm run lint:scss | |
test-unit: | |
runs-on: ubuntu-latest | |
needs: lint | |
strategy: | |
matrix: | |
node_version: [17.x, 18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Staring NodeJS ${{matrix.node_version}} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{matrix.node_version}} | |
- name: install modules | |
run: npm ci | |
- name: unit testing | |
run: npm run test:unit | |
test-ui: | |
runs-on: ubuntu-latest | |
needs: test-unit | |
strategy: | |
matrix: | |
node_version: [18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Staring NodeJS ${{matrix.node_version}} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{matrix.node_version}} | |
- name: install modules | |
run: npm ci | |
- name: build storybook | |
run: npm run storybook:build | |
- name: ui testing | |
run: npm run test:ui:ci | |
build: | |
runs-on: ubuntu-latest | |
needs: test-ui | |
strategy: | |
matrix: | |
node_version: [17.x, 18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Staring NodeJS ${{matrix.node_version}} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{matrix.node_version}} | |
- name: install modules | |
run: npm ci | |
- name: build | |
run: npm run build:prod |