diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml
new file mode 100644
index 0000000..ed724e4
--- /dev/null
+++ b/.github/workflows/integration_tests.yml
@@ -0,0 +1,33 @@
+name: Integration Tests
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+
+jobs:
+ test:
+ name: Run Integration Tests
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 'lts/*'
+
+ - name: Install dependencies
+ run: npm install
+ working-directory: ./backend
+
+ - name: Run Integration Tests
+ env:
+ MONGODB_URI: ${{ secrets.MONGODB_URI }}
+ JWT_SECRET: ${{ secrets.JWT_SECRET }}
+ run: npm run test:integration
+ working-directory: ./backend
diff --git a/.github/workflows/package_size.yml b/.github/workflows/package_size.yml
new file mode 100644
index 0000000..a0a6548
--- /dev/null
+++ b/.github/workflows/package_size.yml
@@ -0,0 +1,23 @@
+name: Package Size Report
+
+on: pull_request
+
+permissions:
+ pull-requests: write
+ contents: read
+
+jobs:
+ pkg-size-report:
+ name: Package Size Report
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-node@v3
+ with:
+ node-version: 20
+
+ - name: Package size report
+ uses: pkg-size/action@v1.1.1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 4de7b91..fdb3630 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -18,11 +18,11 @@ jobs:
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
- uses: actions/setup-node@v3
+ uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
@@ -33,25 +33,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
-
- update-badge:
- needs: release
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - name: Get latest release version
- id: get_version
- run: |
- VERSION=$(gh release list --limit 1 | cut -f1)
- echo "::set-output name=version::$VERSION"
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- - name: Create badge
- uses: schneegans/dynamic-badges-action@v1.6.0
- with:
- auth: ${{ secrets.GIST_SECRET }}
- gistID:
+
|
+
Latest Release: {getLatestRelease()}