Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
agoldis committed Jul 16, 2024
0 parents commit 0b3553f
Show file tree
Hide file tree
Showing 9 changed files with 7,472 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
shard: [1, 2]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install dependencies
run: npm install

- name: Run tests in shard ${{ matrix.shard }}
run: |
npx jest --shard=${{ matrix.shard }}/2
- name: Upload test results to Currents.dev
# CURRENTS_RECORD_KEY is a secret stored in the repository settings
run: |
npx currents upload --project-id mdXsz8 --ci-build-id ${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.currents-report*
node_modules
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
testEnvironment: "node",
testMatch: ["**/tests/**/*.test.js"],
reporters: ["default", "@currents/jest"],
};
Loading

0 comments on commit 0b3553f

Please sign in to comment.