Skip to content

Commit

Permalink
feat: add ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaquewithaq committed Dec 10, 2023
1 parent db28243 commit 5793f68
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI

on:
push:
branches:
- "*"
tags:
- "*.*.*"

pull_request:
branches:
- "*"

jobs:
build-test-archive:
name: Build, Test and Archive
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest] # windows-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: "latest"

- name: Install Dependencies
run: |
bun install
- name: Run Builder
id: build
run: bun builder

- name: Run Tests
id: test
if: success()
run: bun test

- name: Create archive
id: archive
if: success()
run: bun archive

- name: Upload Artifact
if: success()
uses: actions/upload-artifact@v2
with:
name: ara-${{ matrix.os }}
path: |
pkg/**/*
*.tar.gz
*.zip

0 comments on commit 5793f68

Please sign in to comment.