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

Commit

Permalink
Update pull-request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
quisido committed Sep 25, 2021
1 parent d3e7f01 commit 99269ef
Showing 1 changed file with 47 additions and 15 deletions.
62 changes: 47 additions & 15 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,70 @@
name: Pull request
jobs:
install:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
cache: yarn
check-latest: true
node-version: 'lts/*'
- name: Install dependencies
run: yarn install

eslint:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
cache: 'yarn'
cache: yarn
check-latest: true
node-version: 'lts/*'
- run: yarn
- run: yarn eslint
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn eslint

jest:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
cache: 'yarn'
cache: yarn
check-latest: true
node-version: 'lts/*'
- run: yarn
- run: yarn jest
- name: Install dependencies
run: yarn install
- name: Test
run: yarn jest

rollup:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
cache: 'yarn'
cache: yarn
check-latest: true
node-version: 'lts/*'
- run: yarn
- run: yarn rollup
- name: Install dependencies
run: yarn install
- name: Build
run: yarn rollup

on:
pull_request:
branches: [main]

0 comments on commit 99269ef

Please sign in to comment.