New: bun #48
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: Pull Request | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- edited | |
- synchronize | |
jobs: | |
pr-title: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check PR Title | |
uses: deepakputhraya/action-pr-title@master | |
with: | |
allowed_prefixes: 'Breaking:,Fix:,Update:,New:,Build:,Upgrade:,Chore:,NoBuild:' | |
prefix_case_sensitive: true | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: oven-sh/setup-bun@v1 | |
- run: bun run ci | |
- uses: wearerequired/lint-action@master | |
with: | |
auto_fix: false | |
eslint: true | |
eslint_fix: false | |
eslint_extensions: "js,ts" | |
# tsc: | |
# runs-on: ubuntu-latest | |
# steps: | |
# # pull the repo | |
# - name: Check out Git repository | |
# uses: actions/checkout@v2 | |
# # setup node | |
# - name: Setup Node.js 18 | |
# uses: actions/setup-node@v2 | |
# with: | |
# node-version: 18 | |
# # install dependencies | |
# - name: Install Node.js dependencies | |
# run: npm ci | |
# # build the app | |
# - name: Build TVBot | |
# run: npm run build | |
build_docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# just check that it builds, dont push it anywhere cuz whatever | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
push: false | |
tags: cbackas/tvbot:pr |