Skip to content

Commit

Permalink
feat(pipeline.yml) Created pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
CristhianDaza committed Apr 23, 2023
1 parent 1c04e5e commit 8f7cd79
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Pipeline

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
avoid_redundancy:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Redundant Builds
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
lint:
needs: [avoid_redundancy]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
cache: 'npm'
node-version: '16'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn eslint

test:
needs: [lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
cache: 'npm'
node-version: '16'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test
run: yarn test:unit

0 comments on commit 8f7cd79

Please sign in to comment.