Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
✨ Added tasks in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuboczoch committed Jul 12, 2021
1 parent 249c4a7 commit 7ad36a5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
name: ESLint
on:
push:
branches:
- '**'
- '!master'
pull_request:
branches:
- '**'
- '!master'

jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install node v12
uses: actions/setup-node@v1
- name: Checkout Repo
uses: actions/checkout@v2
- name: install node v14
uses: actions/setup-node@v2
with:
node-version: 12
node-version: '14'
- name: yarn install
run: yarn install
- name: eslint
Expand Down
22 changes: 20 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
name: Website Build
on:
push:
branches: [ master ]
branches:
- 'master'
pull_request:
branches: [ master ]
branches:
- 'master'

jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: install node v14
uses: actions/setup-node@v2
with:
node-version: '14'
- name: yarn install
run: yarn install
- name: eslint
uses: icrawl/action-eslint@v1
build-website:
name: Website Build
runs-on: ubuntu-latest
needs: eslint
timeout-minutes: 5
steps:
- name: Checkout Repo
Expand All @@ -20,6 +37,7 @@ jobs:
build-storybook:
name: Storybook Build
runs-on: ubuntu-latest
needs: eslint
timeout-minutes: 5
steps:
- name: Checkout Repo
Expand Down

0 comments on commit 7ad36a5

Please sign in to comment.