From a08848d8c8ba20d9468f872e6b0bf0fd44bdc9cf Mon Sep 17 00:00:00 2001 From: Junaid <88700111+junaid-shirur@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:09:47 +0530 Subject: [PATCH 1/6] bun CI workflow --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..237deea04 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Bun CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install Dependencies (Server) + working-directory: ./server + run: bun install + + - name: Run tests + run: bun test From 57d1e964d738d2c547ed2282d0367f8078409b47 Mon Sep 17 00:00:00 2001 From: Junaid <88700111+junaid-shirur@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:13:13 +0530 Subject: [PATCH 2/6] Rename test.yml to bun_tests.yml --- .github/workflows/{test.yml => bun_tests.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{test.yml => bun_tests.yml} (100%) diff --git a/.github/workflows/test.yml b/.github/workflows/bun_tests.yml similarity index 100% rename from .github/workflows/test.yml rename to .github/workflows/bun_tests.yml From 3a58e56f408ed9ab004e9cd38bb13a38fe6d557c Mon Sep 17 00:00:00 2001 From: Junaid <88700111+junaid-shirur@users.noreply.github.com> Date: Sun, 12 Jan 2025 12:55:06 +0530 Subject: [PATCH 3/6] Update bun_tests.yml --- .github/workflows/bun_tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bun_tests.yml b/.github/workflows/bun_tests.yml index 237deea04..26fdbf611 100644 --- a/.github/workflows/bun_tests.yml +++ b/.github/workflows/bun_tests.yml @@ -23,6 +23,8 @@ jobs: - name: Install Dependencies (Server) working-directory: ./server run: bun install - + env: + ENCRYPTION_KEY: ${{ secrets.ENCRYPTION_KEY }} + SERVICE_ACCOUNT_ENCRYPTION_KEY: ${{ secrets.SERVICE_ACCOUNT_ENCRYPTION_KEY }} - name: Run tests run: bun test From 788b4d832e9af51c97ecbe8664bd181c636b81a9 Mon Sep 17 00:00:00 2001 From: Sahebjot singh Date: Mon, 13 Jan 2025 12:34:20 +0530 Subject: [PATCH 4/6] rename yml file and change name --- .github/workflows/{bun_tests.yml => tests.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{bun_tests.yml => tests.yml} (97%) diff --git a/.github/workflows/bun_tests.yml b/.github/workflows/tests.yml similarity index 97% rename from .github/workflows/bun_tests.yml rename to .github/workflows/tests.yml index 26fdbf611..36bf66b2a 100644 --- a/.github/workflows/bun_tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Bun CI +name: tests on: push: From 02f1dfa07cd7ac5a52352b091a826947012cbe3d Mon Sep 17 00:00:00 2001 From: Sahebjot singh Date: Mon, 13 Jan 2025 12:35:03 +0530 Subject: [PATCH 5/6] add env to the tests --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 36bf66b2a..8819f8e01 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,3 +28,6 @@ jobs: SERVICE_ACCOUNT_ENCRYPTION_KEY: ${{ secrets.SERVICE_ACCOUNT_ENCRYPTION_KEY }} - name: Run tests run: bun test + env: + ENCRYPTION_KEY: ${{ secrets.ENCRYPTION_KEY }} + SERVICE_ACCOUNT_ENCRYPTION_KEY: ${{ secrets.SERVICE_ACCOUNT_ENCRYPTION_KEY }} From 5bc818f4ef001f11cb12ad674f8a712457925235 Mon Sep 17 00:00:00 2001 From: Sahebjot singh Date: Mon, 13 Jan 2025 12:36:29 +0530 Subject: [PATCH 6/6] remove env from install phase --- .github/workflows/tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8819f8e01..041e5321c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,9 +23,6 @@ jobs: - name: Install Dependencies (Server) working-directory: ./server run: bun install - env: - ENCRYPTION_KEY: ${{ secrets.ENCRYPTION_KEY }} - SERVICE_ACCOUNT_ENCRYPTION_KEY: ${{ secrets.SERVICE_ACCOUNT_ENCRYPTION_KEY }} - name: Run tests run: bun test env: