generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 14
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
v2 improvements and fixes #83
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
5fa67a9
Refactor main source file
the-horo 2563280
src/d.ts: drop restrictive visibility specifiers on members
the-horo 3ff78c0
src/d.ts: Correct some dmd paths
the-horo 5416293
src/d.ts: fix some error messages
the-horo fb976cf
action.yml: Stop defaulting to dmd-latest as the D compiler
the-horo 1eded35
Add unittests written in typescript
the-horo f27d933
Set the DMD environment variable for all compilers
the-horo c56aaa8
Allow dmd on macos arm64
the-horo 82a56b5
.github/actions/verify-d-compiler: Perform the tests in separate dirs
the-horo 15a7258
src/gpg.ts: Use @actions/exec instead of promisify-child-process
the-horo 9c0785a
Don't try to install gpg on macos, it is already installed
the-horo 0840768
Remove dependency on @actions/io as it is unused
the-horo fa81d22
Update all dependencies
the-horo be56a18
src/gpg.ts: Use core.toPosixPath instead of internal implementation
the-horo 74aa168
Set fail-fast to false in unittest action
the-horo ab33f49
Prevent @actions/core from writing to files in unittests
the-horo 73502c9
dub: Use arm64 binaries on arm64 macos when available
the-horo 21245d7
README.md: Reword changelog entries
the-horo 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 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
This file contains 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
This file contains 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,33 @@ | ||
name: Run the typescript unittests | ||
on: | ||
push: | ||
branches: | ||
- "v*" | ||
pull_request: | ||
branches: | ||
- "*" | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
run-typescript-unittests: | ||
name: Run all the typescript unittests | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# This could be run on only one machine but run on all of them | ||
# to make sure that other developers can run the tests on | ||
# their system. | ||
os: [ macos-latest, ubuntu-latest, windows-latest ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Run `npm test` | ||
run: | | ||
set -euxo pipefail | ||
npm ci | ||
GITHUB_ENV= GITHUB_PATH= npm test |
This file contains 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have
latest
as a symbolic value, otherwise updates to GDMD will requires updates here (and version bump).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to how to URL is calculated putting in
master
means that the script is downloaded from https://raw.githubusercontent.com/D-Programming-GDC/gdmd/master/dmd-script which is the latest version. No need to add any code.Is it fine if it's left as
master
or do we make itlatest
for consistency. I'm fine we both but the former doesn't require changing any code.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think having
latest
for consistency and displaying this in example is better. This way if upstream decide to change their branch naming convention we can adapt our code without penalizing the user.