Skip to content

Commit

Permalink
Merge pull request #1 from replit/jackyzha0/ci
Browse files Browse the repository at this point in the history
run tests in ci
  • Loading branch information
jackyzha0 authored Apr 9, 2024
2 parents 083ece7 + abff43f commit e10081a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run Tests

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
build-and-test:
strategy:
matrix:
client: ['bun']
server: ['bun']
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci

- name: Test
run: npm run start -- --client ${{ matrix.client }} --server ${{ matrix.server }}
2 changes: 1 addition & 1 deletion impls/bun/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "bun-client",
"name": "bun-river",
"module": "index.ts",
"type": "module",
"dependencies": {
Expand Down

0 comments on commit e10081a

Please sign in to comment.