-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixing e2e tests * Update tests * Update action versions * Update cloudflare wrangler action correctly
- Loading branch information
1 parent
072b89f
commit b334475
Showing
3 changed files
with
12 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
backend-changed: ${{ steps.changes.outputs.backend-changed }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3.5.0 | ||
uses: actions/checkout@v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
|
||
|
@@ -49,7 +49,7 @@ jobs: | |
needs: [setup] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3.5.0 | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Build Site | ||
run: | | ||
|
@@ -66,7 +66,7 @@ jobs: | |
needs: [setup] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3.5.0 | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Build data | ||
working-directory: data | ||
|
@@ -82,10 +82,10 @@ jobs: | |
needs: [setup] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3.5.0 | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v3.6.0 | ||
uses: actions/setup-node@v4.0.0 | ||
with: | ||
cache: 'npm' | ||
cache-dependency-path: 'backend/package-lock.json' | ||
|
@@ -97,15 +97,15 @@ jobs: | |
npm ci | ||
- name: Deploy backend | ||
uses: cloudflare/wrangler-action@2.0.0 | ||
uses: cloudflare/wrangler-action@v3.3.2 | ||
with: | ||
apiToken: ${{ secrets.CF_API_KEY }} | ||
accountId: ${{ secrets.CF_ACCOUNT }} | ||
workingDirectory: backend | ||
command: deploy --env staging | ||
|
||
- name: Run Integration Tests | ||
uses: grafana/[email protected].0 | ||
uses: grafana/[email protected].1 | ||
env: | ||
ENV: staging | ||
PSK: ${{ secrets.BLOG_ADMIN_TOKEN }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ TOKEN=${TOKEN} | |
### Testing | ||
|
||
``` | ||
export TOKEN=<TOKEN FROM BITWARDEN> | ||
k6 -e PSK=${TOKEN} test/script.js | ||
``` |
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