-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(github-actions): extract deploy & e2e job for deployable flag
- Loading branch information
1 parent
3d0a624
commit d8f5497
Showing
5 changed files
with
54 additions
and
30 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
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
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { test, expect } from 'bun:test'; | ||
import supertest from 'supertest'; | ||
|
||
const url = process.env.AZURE_FUNCTIONS_URL; | ||
const apiKey = process.env.AZURE_FUNCTIONS_API_KEY; | ||
if (!url) throw new Error('AZURE_FUNCTIONS_URL not set'); | ||
if (!apiKey) throw new Error('AZURE_FUNCTIONS_API_KEY not set'); | ||
|
||
test('e2e', async () => { | ||
const response = await fetch(new URL(`/api/SimpleHttpTrigger?code=${apiKey}`, url).toString()); | ||
const response = await supertest(url).get(`/api/SimpleHttpTrigger?code=${apiKey}`); | ||
expect(response.status).toBe(200); | ||
}); |
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
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