Skip to content

Commit

Permalink
Merge pull request #5 from tan911/workflow
Browse files Browse the repository at this point in the history
Setup workflow for automated code checks
  • Loading branch information
tan911 authored Aug 27, 2024
2 parents afad7cf + cf9ff89 commit e28e906
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Application CI
on:
pull-request:
types: opened
branch: main
paths-ignore:
- './github/worklows/*'
- '*.md'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Get code
uses: actions/checkout@v4

- name: Set up node environment
uses: actions/setup-node@v4
with:
node-version: latest

- name: Install packages
run: npm ci

- name: Format code
run: npm run format

- name: Lint code
run: npm run lint

test:
runs-on: ubuntu-latest
steps:
- name: Get code
uses: actions/checkout@v4

- name: Set up node environment
uses: actions/setup-node@v4
with:
node-version: latest

- name: Install packages
run: npm ci

- name: Test code
run: npm run test

0 comments on commit e28e906

Please sign in to comment.