Skip to content

chore: update title

chore: update title #8

name: linting, testing, building
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
buildAndTest:
runs-on: ubuntu-latest
concurrency: ci-${{ github.ref }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
strategy:
matrix:
node-version: [17.x]
steps:
- uses: actions/checkout@v3
- name: Starting Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: install modules
run: npm ci --force
- name: build production project
run: npm run build:prod
if: always()
- name: linting ts
run: npm run lint:ts
if: always()
- name: linting css
run: npm run lint:scss
if: always()
- name: unit testing
run: npm run test:unit
if: always()
- name: build storybook
run: npm run storybook:build
if: always()
- name: screenshot test
run: npm run test:ui:ci
if: always()
- name: Generate HTML report
run: npm run test:ui:report
if: always()
- name: move loki
run: mv .loki reports/
if: always()
- name: Setup Pages
uses: actions/configure-pages@v2
if: always()
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
if: always()
with:
path: '.loki'
- name: Deploy to GitHub Pages
id: deployment
if: always()
uses: actions/deploy-pages@v1