Checking serge-st code and creating a production build #67
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: Lint, Test and Build Production App Version | |
run-name: Checking ${{ github.actor }} code and creating a production build | |
on: [push, pull_request] | |
jobs: | |
Lint-Test-Build_Prod: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.18.2' | |
- name: Install App Dependencies | |
run: npm ci | |
- name: Build Production App Version | |
run: npm run build:prod:ci | |
- name: Lint CSS | |
run: npm run lint:css | |
- name: Lint TS | |
run: npm run lint:ts | |
- name: Run Unit Tests | |
run: npm run test:unit | |
Screenshot_Tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.18.2' | |
registry-url: 'https://npm.pkg.github.com/' | |
scope: 'serge-st' | |
- name: Install App Dependencies | |
run: npm ci | |
- name: Run Screenshot Tests | |
run: npm run test:screenshot:ci | |
- name: Archive Screenshots (if "Run Screenshot Tests" failed) | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v1 | |
with: | |
name: design-system | |
path: .loki |