-
Notifications
You must be signed in to change notification settings - Fork 0
chore: add devenv tests #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ba069ea
Add basic test
dastarruer 3bd81c3
Add github workflow
dastarruer 1329e49
Fix syntax error in github workflow
dastarruer aea3ed1
Make the Node version assertion exact
dastarruer 7cc3d67
Use exact commit IDs instead of versions
dastarruer 43ea555
Fix enterTest
dastarruer 5605199
Install npm dependnencies
dastarruer db83640
Fix npm dependency installation
dastarruer 2e2e423
Fix macos workflow run
dastarruer a3cdb48
Only run npm-format on passed files
dastarruer 93a597a
Fix npm format hook
dastarruer 8ba7e1a
Fix macos workflow run
dastarruer c6b25f0
Use GITHUB_PATH instead of GITHUB_ENV
dastarruer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| name: "Test" | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
|
|
||
| jobs: | ||
| tests: | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest] | ||
| runs-on: ${{ matrix.os }} | ||
|
|
||
| # Use exact commit IDs instead of versions as recommended by Github | ||
| steps: | ||
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 | ||
| - uses: cachix/install-nix-action@4eae8bea4afaa8f8ea8aa638ab9a7fead2f3d21e # v31 | ||
| - uses: cachix/cachix-action@97e5ff84d02b3b4f9936339f767e17f03c9252ed # v16 | ||
| with: | ||
| name: devenv | ||
| - name: Install devenv.sh | ||
| run: nix profile add nixpkgs#devenv | ||
|
|
||
| # Without nix unstable, an obscure builder error is thrown | ||
| - name: Install nix unstable on macOS | ||
| if: runner.os == 'macOS' | ||
| run: | | ||
| nix profile add nixpkgs#nixVersions.latest | ||
| echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH | ||
|
|
||
| # Required for the npm-format hook and node engine compatibility | ||
| - name: Install npm dependencies | ||
| run: devenv shell -- bash -c 'cd app && npm ci' | ||
|
|
||
| - name: Build the devenv shell and run any pre-commit hooks | ||
| run: devenv test | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.