Skip to content

Commit

Permalink
Link jest-preset-cljest so that tests work
Browse files Browse the repository at this point in the history
- Consolidate workflow files for simplicity
  • Loading branch information
jo-sm committed Feb 20, 2023
1 parent 4709ca0 commit d763095
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 39 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/cljest-tests.yml

This file was deleted.

30 changes: 28 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "jest-preset-cljest: Lint and run tests"
name: Lint and tests

on:
push:
Expand All @@ -12,7 +12,33 @@ concurrency:
cancel-in-progress: true

jobs:
lint-and-test:
cljest-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: cljest

steps:
- uses: actions/checkout@v3
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: Setup Clojure
uses: DeLaGuardo/[email protected]
with:
cli: 1.11.1.1224
- name: Link jest-preset-cljest
run: npm link ../jest-preset-cljest
- name: Install npm dependencies
run: npm install
- name: Build Jest code
run: clojure -X cljest.compilation/compile
- name: Run cljest tests
run: npm run jest:ci

jest-preset-cljest-tests:
runs-on: ubuntu-latest
defaults:
run:
Expand Down

0 comments on commit d763095

Please sign in to comment.