Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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: |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not use the official account for integration tests, it should only be done on test accounts.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but do we have any official testing account? If not, then I think you should create one! because the testing account also needs to be owned by Nodejs org!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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