nothing just #2
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: Ci of Diesel-project | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build our Diesel-core | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# Cache Bun installation | |
- name: Cache Bun | |
id: cache-bun | |
uses: actions/cache@v3 | |
with: | |
path: ~/.bun | |
key: ${{ runner.os }}-bun-${{ hashFiles('**/bunfig.toml') }} | |
restore-keys: | | |
${{ runner.os }}-bun- | |
# Install Bun if it's not cached | |
- name: Install Bun | |
run: | | |
if [ ! -d "$HOME/.bun" ]; then | |
curl -fsSL https://bun.sh/install | bash | |
fi | |
continue-on-error: true # Allows the workflow to continue even if Bun is already installed | |
- name: Install dependencies | |
run: Bun install | |
- name: Run TypeScript Compiler | |
run: tsc | |
- name: Minify our code | |
run: Bun run build |