Convert to bun #19
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: Marketbot CD | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: 1.x.x | |
- name: Install packages | |
run: bun install --frozen-lockfile | |
- name: Run tests | |
run: bun run test | |
- name: Upload coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
directory: coverage | |
- name: Deploy | |
if: github.event_name == 'push' | |
run: npx -q @ionaru/teamcity-deploy teamcity.saturnserver.org MarketBot_Build ${{ secrets.API_TOKEN }} |