-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (31 loc) · 878 Bytes
/
CI.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Fedialgo Build and Test
on:
pull_request:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # Or your preferred version
- name: Install dependencies
run: npm ci
- name: Compile TypeScript
run: npm run build
- name: Run tests
run: npm run test
env:
MASTODON_URL: ${{ secrets.MASTODON_URL }}
MASTODON_TOKEN: ${{ secrets.MASTODON_TOKEN }}
- name: Commit Build
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Build: ${{ github.sha }}"