Skip to content

Commit

Permalink
Remove opt in (#94)
Browse files Browse the repository at this point in the history
* e2e tests

* fix of typechceck error

* forgot to remove unused env var

* reset to before opt-in

* removed uncessecary env vars
  • Loading branch information
JurreBrandsenInfoSupport committed Apr 22, 2024
1 parent 8c4c2af commit 52c0602
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Info Support Tech Survey

## Introduction
5 changes: 0 additions & 5 deletions src/server/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
} from "next-auth";
import { type Adapter } from "next-auth/adapters";
import AzureADProvider from "next-auth/providers/azure-ad";
import GitHubProvider from "next-auth/providers/github";

import { env } from "~/env";
import { db } from "~/server/db";
Expand Down Expand Up @@ -54,10 +53,6 @@ export const authOptions: NextAuthOptions = {
clientSecret: env.AZURE_AD_CLIENT_SECRET,
tenantId: env.AZURE_AD_TENANT_ID,
}),
GitHubProvider({
clientId: process.env.GITHUB_ID ?? "",
clientSecret: process.env.GITHUB_SECRET ?? "",
}),
],
};

Expand Down
2 changes: 1 addition & 1 deletion tests/tech-survey.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ test("User fills in complete survey correctly", async ({ page }) => {

await surveyPage.fillInQuestions(nextUrl, false, isLastRole);
}
});
});

0 comments on commit 52c0602

Please sign in to comment.