Skip to content

Commit

Permalink
chore: update linter and test in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
frytg committed Sep 4, 2024
1 parent f1b2e49 commit de53083
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ingest-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
node-version: ${{ env.NODE_VERSION }}

- name: 🛠 Setup Bun
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

Expand All @@ -46,7 +46,7 @@ jobs:
create_credentials_file: true

- name: 📚 Lint Code
run: bun ingest:lint
run: bun lint

- name: 🧪 Run Ingest Tests
env:
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
node-version: ${{ env.NODE_VERSION }}

- name: 🛠 Setup Bun
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ingest-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
node-version: ${{ env.NODE_VERSION }}

- name: 🛠 Setup Bun
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

Expand All @@ -49,7 +49,7 @@ jobs:
create_credentials_file: true

- name: 📚 Lint Code
run: bun ingest:lint
run: bun lint

- name: 🧪 Run Ingest Tests
env:
Expand All @@ -62,7 +62,7 @@ jobs:
STAGE: dev
TEST_USER: ${{ secrets.TEST_USER }}
TEST_USER_PW: ${{ secrets.TEST_USER_PW }}
run: bun ingest:test
run: npm run ingest:test

docker:
runs-on: ubuntu-latest
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/linter.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ingest:cloud": "node ./src/ingest/index.js",
"ingest:test:local": "node --env-file .env ./node_modules/mocha/bin/mocha --recursive './src/**/*.test.js' --timeout 15000 --exit",
"ingest:test": "mocha --recursive './src/**/*.test.js' --timeout 15000 --exit",
"ingest:lint": "biome lint src",
"lint": "biome lint",
"docker:build": "docker build . -t swr/ard-eventhub",
"docker:run": "docker run --env-file .env -p 8080:8080 --name ard-eventhub swr/ard-eventhub",
"docker:scan": "bun docker:build && docker scout quickview",
Expand Down

0 comments on commit de53083

Please sign in to comment.