resume work from https://github.com/touhidurrr/newServer/blob/main/pa… #1
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: Run Tests | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-13] | |
defaults: | |
run: | |
shell: bash | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v1 | |
- name: Install dependencies | |
run: bun install | |
- name: Lint TypeScript | |
run: bun lint:tsc | |
- name: Make .env file | |
run: | | |
echo "SYNC_TOKEN=$(openssl rand -base64 32)" > .env | |
echo "MONGO_URL=${{ secrets.MONGO_URL }}" >> .env | |
echo "DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }}" >> .env | |
- name: Run tests | |
run: bun test | |
- name: Shred data! | |
run: shred -uzn 10 .env |