Skip to content

Commit

Permalink
Creates a new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsc0301 committed Sep 12, 2023
1 parent 0f476e1 commit 28ed09f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,17 @@ on:
push:
branches:
- main
- babylon-version

permissions:
contents: write

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
testing:
name: Server Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Bun
uses: oven-sh/setup-bun@v1

- run: bun install
- run: bun test

#only deploys the main branch
deploy:
name: Build and Deploy
runs-on: ubuntu-latest
needs: testing
if: github.ref == 'refs/heads/main'

steps:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/server_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Server Tests

on:
push:
branches:
- master
- babylon-version

jobs:
testing:
name: Server Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Bun
uses: oven-sh/setup-bun@v1

- run: bun install
- run: bun test

0 comments on commit 28ed09f

Please sign in to comment.