Skip to content

Recommender

Recommender #19

Workflow file for this run

name: Fedialgo Build and Test
on:
pull_request:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- 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: Lint TypeScript
run: npm run lint
- 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 }}"