Skip to content

Commit

Permalink
feat: add lint and Docker build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Apr 8, 2024
1 parent cbd3e21 commit bf7820a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Docker build

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
docker:
name: Docker build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build with Docker
run: docker build .
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint files

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
lint:
name: Lint files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache node modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies and lint files
run: |
npm ci
npm run lint

0 comments on commit bf7820a

Please sign in to comment.