Skip to content

SelfDestroyer is testing out GitHub Actions πŸš€ #57

SelfDestroyer is testing out GitHub Actions πŸš€

SelfDestroyer is testing out GitHub Actions πŸš€ #57

Workflow file for this run

name: linting, testing and building
run-name: ${{ github.actor }} is testing out GitHub Actions πŸš€
on:
push:
branches: [develop]
pull_request:
branches: [main, develop]
jobs:
lint-format:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Run Stylelint
run: npm run lint:scss
types-check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Run ESLint
run: npm run lint:ts
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Run unit tests
run: npm run test:unit
ui-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Run build storybook
run: npm run storybook:build
- name: Run screenshot-tests
run: npm run test:ui:ci
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
needs: [lint-format, types-check, unit-tests, ui-tests]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Run build
run: npm run build:prod