Skip to content

Commit

Permalink
Merge branch 'main' into feat/create-store-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Gading Nasution committed Oct 11, 2022
2 parents 6e2d2d9 + 105baf4 commit c5efa6f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Continuous Integration
on:
push:
branches: [main]
pull_request:
branches: [main]

Expand Down Expand Up @@ -28,6 +30,7 @@ jobs:
lint:
name: Lint
if: github.event_name == 'pull_request'
needs: install
runs-on: ubuntu-latest
steps:
Expand All @@ -45,6 +48,7 @@ jobs:
test:
name: Unit Test
if: github.event_name == 'pull_request'
needs: install
runs-on: ubuntu-latest
steps:
Expand All @@ -67,8 +71,27 @@ jobs:
coverage-file: report.json
base-coverage-file: report.json

build:
name: Build
if: github.event_name == 'push'
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Load node_modules
uses: actions/cache@v1
with:
path: node_modules
key: node_modules-${{ github.event.pull_request.head.sha }}
- name: Start Building
run: |
npm run build
size:
name: Build & Generate Size report
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
Expand Down

0 comments on commit c5efa6f

Please sign in to comment.