Skip to content

Commit

Permalink
fix: adds linting and testing to build phase. deploy phase is now the…
Browse files Browse the repository at this point in the history
… build phase (#56)

Co-authored-by: Andrew Stacy <[email protected]>
  • Loading branch information
Andrew Stacy and Andrew Stacy authored Apr 21, 2021
1 parent 5ef1a7e commit 9e6cf32
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 13 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/deploy.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,33 @@
name: Deploy
name: Build
on:
push:
branches: [master]

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v1
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Dependencies
uses: bahmutov/npm-install@v1
- name: Run Linter
run: yarn lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v1
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Dependencies
uses: bahmutov/npm-install@v1
- name: Run Unit Tests
run: yarn test
release:
name: Release
runs-on: ubuntu-latest
Expand Down
28 changes: 18 additions & 10 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
name: Validation
on:
pull_request:
branches: [ master ]
branches: [master]

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: bahmutov/npm-install@v1
- run: yarn lint
- name: Setup Node
uses: actions/setup-node@v1
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Dependencies
uses: bahmutov/npm-install@v1
- name: Run Linter
run: yarn lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: bahmutov/npm-install@v1
- run: yarn test
- name: Setup Node
uses: actions/setup-node@v1
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Dependencies
uses: bahmutov/npm-install@v1
- name: Run Unit Tests
run: yarn test
build:
name: Build
runs-on: ubuntu-latest
Expand All @@ -35,4 +43,4 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install
uses: bahmutov/npm-install@v1
- run: yarn build
- run: yarn build
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

![Adze Logo](docs/assets/logo_small.png)

![validation workflow](https://github.com/AJStacy/adze/actions/workflows/validation/badge.svg)
![npm](https://img.shields.io/npm/v/adze) ![node-lts](https://img.shields.io/node/v-lts/adze)
![validation workflow](https://github.com/AJStacy/adze/actions/workflows/build.yml/badge.svg)
![npm](https://img.shields.io/npm/v/adze) ![node-lts](https://img.shields.io/node/v-lts/adze)

**Please visit our official docs at [adzejs.com](http://www.adzejs.com/).**

Expand Down

0 comments on commit 9e6cf32

Please sign in to comment.