Skip to content

Commit

Permalink
feat: add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SudharakaP committed Dec 11, 2023
1 parent a61d45f commit 670d2cd
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Continuous Integration

on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
lint:
runs-on: ubuntu-latest

timeout-minutes: 15

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

- uses: amplium/git-crypt-action@master
with:
key_encoded: ${{ secrets.DECRYPTION_SECRET }}

- run: npm run lint:quiet

prettier:
runs-on: ubuntu-latest

timeout-minutes: 15

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

- uses: amplium/git-crypt-action@master
with:
key_encoded: ${{ secrets.DECRYPTION_SECRET }}

- run: npm run prettier:check -
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
"scripts": {
"start-booker": "node add-to-cart.mjs",
"start-checker": "node check-for-changes.mjs",
"prettier:check": "prettier --check .",
"prettier:write": "prettier --write .",
"lint:quiet": "npm run lint -- --quiet",
"eslint:fix": "eslint . --ignore-path .gitignore --ext .mjs,.js --fix"
}
}

0 comments on commit 670d2cd

Please sign in to comment.