feat: remove top posts, that were likely already seen #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |