From efad0d2af56bf83520b9b5dc87ecfac475077e1c Mon Sep 17 00:00:00 2001 From: CJ Brewer Date: Thu, 6 Feb 2025 09:06:13 -0800 Subject: [PATCH 1/2] fix: remove console logs from test --- packages/protect/__tests__/protect.test.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/protect/__tests__/protect.test.ts b/packages/protect/__tests__/protect.test.ts index b750b579f..a9f4dcabd 100644 --- a/packages/protect/__tests__/protect.test.ts +++ b/packages/protect/__tests__/protect.test.ts @@ -120,18 +120,13 @@ describe('encryption and decryption', () => { }) it('should encrypt and decrypt a payload', async () => { - console.log('process.env.CS_CLIENT_ID', process.env.CS_CLIENT_ID) const protectClient = await protect() - console.log('protectClient has been created') - const ciphertext = await protectClient.encrypt('plaintext', { column: 'column_name', table: 'users', }) - console.log('ciphertext has been created') - const plaintext = await protectClient.decrypt(ciphertext) expect(plaintext).toEqual('plaintext') From e5606191cfafdf3b30c1b8f29efbebf60a6099e3 Mon Sep 17 00:00:00 2001 From: CJ Brewer Date: Thu, 6 Feb 2025 09:08:26 -0800 Subject: [PATCH 2/2] feat(ci): run tests on push to main --- .github/workflows/tests.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 399bb47ad..3a1fcd1a2 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,6 +1,9 @@ name: Package Tests on: + push: + branches: + - 'main' pull_request: branches: - "**"