Skip to content

Commit

Permalink
ci: split workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Aug 4, 2023
1 parent 6a4056f commit 01f09bc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Docker

on:
pull_request:
branches: [ main ]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build with Docker
run: docker build .

14 changes: 5 additions & 9 deletions .github/workflows/ci.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: CI
name: Lint files

on:
pull_request:
branches: [ main ]

jobs:
test:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -15,15 +15,11 @@ jobs:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: |
npm i
run: npm install
env:
CI: true
- name: Lint JavaScript and JSON files
run: |
npm run lint
- name: Lint files
run: npm run lint
env:
CI: true
- name: Build with Docker
run: docker build .

0 comments on commit 01f09bc

Please sign in to comment.