Skip to content

Commit

Permalink
feat: add ci job for cors middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzNotABug committed Jun 22, 2024
1 parent 1d38f0f commit 7615174
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/cors-cache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CORS Policy CI

on:
workflow_dispatch: # for manual runs
pull_request:
types: [ opened, synchronize, reopened ]
paths:
- 'middlewares/cors/**'

jobs:
build-and-test:
name: Run Lint
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install Dependencies
run: npm install
working-directory: ./middlewares/cors

- name: Run Prettier
run: npm run lint
working-directory: ./middlewares/cors

0 comments on commit 7615174

Please sign in to comment.