Skip to content

Commit

Permalink
Test and release jobs (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzkaczor authored Jul 25, 2024
1 parent 898ba65 commit fe14716
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
pull_request:
push:
branches:
- main

jobs:
test:
strategy:
matrix:
node: ["20"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2

- run: bun install
- run: bun check
- run: bun test
- run: bun typecheck

- run: bun build:action # dry run build


25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2

- run: bun install
- run: bun build:action

- uses: ActionwareIO/branch-push-action@action
with:
branch: action
files: |
README.md
action.yml
./out/action.js
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
out

.env

0 comments on commit fe14716

Please sign in to comment.