Skip to content

Commit

Permalink
attempt to isolate jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinle623 committed Oct 27, 2023
1 parent 5985502 commit c246a75
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 28 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/automatedPrChecks copy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Automated Client PR Tests and Lint

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:

client-tests-and-lint:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install client dependencies
run: |
cd client
npm ci
- name: Run client tests
run: |
cd client
npm test
- name: Run client linter
run: |
cd client
npm run lint
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Automated PR Tests and Lint
name: Automated Server PR Tests and Lint

on:
pull_request:
Expand Down Expand Up @@ -32,30 +32,3 @@ jobs:
cd server
npm run lint
client-tests-and-lint:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install client dependencies
run: |
cd client
npm ci
- name: Run client tests
run: |
cd client
npm test
- name: Run client linter
run: |
cd client
npm run lint

0 comments on commit c246a75

Please sign in to comment.