Add expires in feature in jwt #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bun (π) API Starter CI | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
paths-ignore: | |
- "README.md" | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Start MongoDB | |
uses: supercharge/mongodb-github-action@1.10.0 | |
with: | |
mongodb-username: starter | |
mongodb-password: secret | |
mongodb-db: starter | |
- name: Installing dependencies | |
run: bun install | |
- name: Run linter | |
run: bun run lint | |
- name: Run tests | |
run: bun run test | |
env: | |
DB_NAME: starter | |
DB_PASSWORD: secret | |
DB_USERNAME: starter | |
DB_PORT: 27017 | |
DB_HOST: mongodb | |
TEST_APP_HOST: 127.0.0.1 | |
TEST_APP_PORT: 8001 | |
JWT_SECRET: secret |