From 8bd9d1952a4e2ae5dd21b1fd7e17c0adafc1577f Mon Sep 17 00:00:00 2001 From: 0hmX Date: Fri, 16 May 2025 01:51:47 +0530 Subject: [PATCH] ci: add GitHub Actions workflow for CI This commit introduces a new GitHub Actions workflow file (ci.yml) to automate the build and test process for the repository. The workflow is triggered on push and pull request events to the main branch. --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3102e58 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + workflow_dispatch: + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Enable Corepack + run: corepack enable + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "22" + cache: "yarn" + cache-dependency-path: actions/yarn.lock + + - name: Install dependencies + run: yarn install --frozen-lockfile + working-directory: ./actions + + - name: Create .env.bsky + run: | + echo "BLUESKY_IDENTIFIER_NODEJS_ORG=${{ secrets.BLUESKY_IDENTIFIER_NODEJS_ORG }}" >> actions/.env.bsky + echo "BLUESKY_APP_PASSWORD_NODEJS_ORG=${{ secrets.BLUESKY_APP_PASSWORD_NODEJS_ORG }}" >> actions/.env.bsky + + - name: Run integration test + run: node --env-file actions/.env.bsky actions/test/integration.js + working-directory: ./actions \ No newline at end of file