Skip to content

Update CI.yaml

Update CI.yaml #4

Workflow file for this run

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
- 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
run:
git config --global user.name "pkreissel"
git config --global user.email "[email protected]"
git add .
git commit -m "Build ${{ github.event.head_commit.message }}"
git push