Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Reconfigure GitHub workflows #2082

Merged
merged 6 commits into from
Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
95 changes: 95 additions & 0 deletions .github/workflows/check-codebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Check codebase

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 14

- name: Install dependencies
run: yarn install --frozen-lockfile
streamich marked this conversation as resolved.
Show resolved Hide resolved

- name: Run build
run: yarn build

storybook:
name: Storybook
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 14

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run build:storybook
run: yarn storybook:build

lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 14

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Lint with ESLint
run: yarn lint

- name: Lint with TSC
if: ${{ always() }}
kachkaev marked this conversation as resolved.
Show resolved Hide resolved
run: yarn lint:types

unit-tests:
name: Unit tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node: [12, 14, 16]
exclude:
- os: macos-latest
node: 12
- os: windows-latest
node: 12
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run unit tests
run: yarn test
27 changes: 0 additions & 27 deletions .github/workflows/pull_request_ci.yml

This file was deleted.