Skip to content

Commit 2836916

Browse files
committed
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.
1 parent bc0392c commit 2836916

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Enable Corepack
18+
run: corepack enable
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: "22"
24+
cache: "yarn"
25+
cache-dependency-path: actions/yarn.lock
26+
27+
- name: Install dependencies
28+
run: yarn install --frozen-lockfile
29+
working-directory: ./actions
30+
31+
32+
- name: Create .env.bsky
33+
run: |
34+
echo "BLUESKY_IDENTIFIER_NODEJS_ORG=${{ secrets.BLUESKY_IDENTIFIER_NODEJS_ORG }}" >> actions/.env.bsky
35+
echo "BLUESKY_APP_PASSWORD_NODEJS_ORG=${{ secrets.BLUESKY_APP_PASSWORD_NODEJS_ORG }}" >> actions/.env.bsky
36+
37+
- name: Run integration test
38+
run: node --env-file actions/.env.bsky actions/test/integration.js
39+
working-directory: ./actions

0 commit comments

Comments
 (0)