Skip to content

Commit

Permalink
Run tests on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Jun 19, 2024
1 parent acd0184 commit 4856742
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: main
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: actions/setup-node@v4
with:
node-version: lts/*
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: deno task test --junit-path=.test-report.xml
- uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: .test-report.xml
- run: deno task check
- run: deno task dnt
- run: bun run ./test_runner.js
working-directory: ${{ github.workspace }}/npm/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- deno-fmt-ignore-file -->

@fedify/redis
=============

Expand Down
5 changes: 5 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
"@std/assert": "jsr:@std/assert@^0.226.0",
"ioredis": "npm:ioredis@^5.4.0"
},
"exclude": [
"npm",
"*.md"
],
"tasks": {
"check": "deno fmt --check && deno lint && deno check */*.ts",
"test": "deno test --allow-net --allow-env",
"dnt": "deno run -A dnt.ts"
}
Expand Down

0 comments on commit 4856742

Please sign in to comment.