Skip to content

Commit

Permalink
fix: reorganize action to prevent deploying when tsc fails
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Oct 7, 2020
1 parent 2f720d3 commit 7f4bcde
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,29 @@ on:
branches: [ develop ]

jobs:

tsc:

name: Check types

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: npm ci

- name: Typescript
run: npm run tsc

deploy:

runs-on: ubuntu-latest

needs: tsc

steps:
- uses: actions/checkout@v2

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/tsc.yml → .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Typescript check
name: Check pull request

on:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
Expand Down

0 comments on commit 7f4bcde

Please sign in to comment.