generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Create initial julia-version
implementation
#3
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 111 commits
Commits
Show all changes
123 commits
Select commit
Hold shift + click to select a range
ed2ca7c
Set author/codeowner
omus cd28a2d
Switch references to julia-version
omus c320eed
Add a description
omus 7140e0c
Package is public
omus fa712bb
Rename .yml to .yaml
omus 457878a
Rename yamllint config file to use a default name
omus bae46cd
fixup! Switch references to julia-version
omus 45b4566
fixup! Set author/codeowner
omus ce06851
fixup! Add a description
omus 51a90ab
Drop trailing slash from job names
omus 2bcf4e4
Update YAML linting rules
omus 374fa30
fixup! Update YAML linting rules
omus 0f338ae
Use double-quotes
omus 06af11f
fixup! Use double-quotes
omus 4bef51f
Add note on GHA syntax
omus 99c2c04
Disable commitlint
omus 9b08555
Rename workflow to CI
omus c19da88
Rename markdownlint config file
omus 6ad9ad7
drop! Debug
omus 5e73480
Custom config file names and LINTER_RULES_PATH incompatible
omus 4a06e83
Skip markdown
omus faf79c8
Empty: test
omus 750266c
Set log level to DEBUG
omus 96a3960
Try fix
omus 64820ff
Iterating
omus 5cf7d7d
Iterating
omus ff21bd5
Iterating
omus 7fce630
Iterating
omus d043b9d
Disable debug logging
omus 1e6f15d
Make an .env
omus 8a1f38f
Update dependencies
omus 4d6d69e
Run most PR workflows independent of base branch
omus 2935653
Draft
omus 27bebb1
Refactor
omus c6b11f5
Adding tests
omus 365ed12
Tests and drop tc
omus 2803574
Formatting
omus 1fbf33c
Cleanup
omus e835401
Fix linting
omus ad96f27
Silence dotenv-linter
omus 533af7e
Update action test
omus 7f49cdc
Silence dotenv-linter
omus 04d193a
Drop arch input
omus 2ecbadb
Test for transpiled
omus 72364fd
Create bundle
omus 0a32122
node-fetch testing mess
omus 23327bb
Experiment with fetch wrapper
omus 36bbab7
Jest mostly functional
omus 8afe7d3
Improve things
omus 425308c
Use nock for HTTP mocking
omus 1716496
Flush out main tests
omus 8202841
Use node prefix on import
omus e60ffcf
Remove wait
omus 586be7f
Bundle
omus 802e278
Improve CI action test
omus 99cdc77
Use versions.json for testVersions
omus 14941da
Simplify updating tests
omus 400320e
Drop quotes
omus 9b4bf66
Fix comment
omus 3720e1d
Show resolved version in CI
omus 9eb2408
Update bundle
omus b900a38
Fix linting error
omus 0277e4a
Fix debug change to versions.json
omus cd63526
Initial support for multiple versions
omus 64e9022
Fix tests
omus 924cfe8
Support YAML input handling
omus c98678f
Port: Badge label
omus 90d3ecf
Formatting
omus 47e033e
Document version specifier syntax
omus 823f774
Refactoring to fall inline with documentation
omus 8ef2ef1
Validate input version specifiers
omus f969870
Functionality in place
omus 838189f
Fix GHA test
omus 20596ee
Linting fixes
omus 106e31d
Input fix
omus 25349c1
Set output to resolved
omus b12adf9
Fix regex tests
omus 17de402
Linting
omus 2832b9e
fixup! Linting
omus 5aa5c26
Add GHA example
omus c89ea50
fixup! Add GHA example
omus 6d0de75
Cleanup
omus cdd5301
fixup! Add GHA example
omus c9093b3
Cleanup
omus 7eb5861
Add CONTRIBUTION guide
omus e11e961
Document inputs/outputs
omus 0713b1d
fixup! Document inputs/outputs
omus 1df85bc
Fix CI
omus 9e6c70a
Allow inline HTML in tables
omus 03ebbe5
Prettier ignoring markdown table
omus 905a8dd
fix
omus a6b5ea7
Fix GHA example test
omus 2aafbb4
Create separate example workflow
omus 52b74cc
fixup! Create separate example workflow
omus 9d31016
fixup! Create separate example workflow
omus 87ee7fa
Add tests for resolveVersionSpecifiers
omus 95156b6
Rename functions
omus 18ce249
Return unique
omus 9d80ebe
Add more docstrings
omus 4bac62e
Use trailing comma ES5
omus a459074
Require markdown lists to be ordered
omus 19c22d2
Use trailing comma ES5
omus f7dc08b
Merge branch 'cv/initial-refactor' into cv/implementation
omus affb56b
CI fixes
omus cb8adc8
Set version to 0.1.0
omus 5e91783
fixup! Drop trailing slash from job names
omus 1b118b8
Merge branch 'cv/initial-refactor' into cv/implementation
omus dd7f818
Rename output `unique` to `unique-json`
omus 75f6472
Provide scalar output `version`
omus c860b2d
Use more basic Backus-Naur form
omus 2db95f3
fixup! Use more basic Backus-Naur form
omus abcfe55
Update CONTRIBUTING on installing Node.js
omus 485182d
Add additional version input test
omus c5c6dbb
Add YAML decimal conversion test
omus 86b16cb
Test nightly HEAD request performance
omus 2bb34ab
fixup! Add YAML decimal conversion test
omus 696eaea
Confirm nightly check performance
omus f5bd6e5
Revert "Test nightly HEAD request performance"
omus cc49330
Add guidance to CONTRIBUTING.md
omus be1235e
Use string literal type for if-missing
omus cb7ec0c
Skip non-functional tests
omus 496c3e2
Merge branch 'main' into cv/implementation
omus ae6b00b
Fix dotenv linter
omus 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
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
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
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,74 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
pull_request: {} | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test-typescript: | ||
name: TypeScript Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .node-version | ||
cache: npm | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Check Format | ||
run: npm run format:check | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
- name: Test | ||
run: npm run ci-test | ||
|
||
test-action: | ||
name: GitHub Actions Test | ||
permissions: | ||
contents: read | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Create Project.toml | ||
shell: bash | ||
run: | | ||
echo -e '[compat]\njulia = "1.6"' >Project.toml | ||
|
||
- name: Test julia-version | ||
id: julia-version | ||
uses: ./ | ||
with: | ||
versions: | | ||
- min | ||
- lts | ||
- 1 | ||
- ~1.10 | ||
if-missing: error | ||
|
||
- name: Validate output | ||
shell: bash | ||
run: | | ||
set -x | ||
[[ "$(jq -r 'length' <<<"$unique_json")" -eq 3 ]] || exit 1 | ||
omus marked this conversation as resolved.
Show resolved
Hide resolved
|
||
[[ "$(jq -r '.[0]' <<<"$unique_json")" == "1.6.0" ]] || exit 1 | ||
[[ "$(jq -r '.[1]' <<<"$unique_json")" =~ ^1\.10\.([8-9]|[1-9][0-9]*)$ ]] || exit 1 # [1.10.8, 1.11.0) | ||
[[ "$(jq -r '.[2]' <<<"$unique_json")" =~ ^1\.(1[1-9]|2[0-9]+)\.[0-9]+$ ]] || exit 1 # [1.11.0, ∞) | ||
|
||
[[ "$version" == "" ]] || exit 1 | ||
env: | ||
unique_json: ${{ steps.julia-version.outputs.unique-json }} | ||
version: ${{ steps.julia-version.outputs.version }} |
This file was deleted.
Oops, something went wrong.
7 changes: 3 additions & 4 deletions
7
.github/workflows/codeql-analysis.yml → .github/workflows/codeql-analysis.yaml
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
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,56 @@ | ||
--- | ||
name: Example | ||
on: | ||
pull_request: {} | ||
push: | ||
branches: | ||
- main | ||
|
||
# These permissions are needed to: | ||
# - Checkout the Git repository (`contents: read`) | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
version: | ||
name: Resolve Julia Versions | ||
runs-on: ubuntu-latest | ||
outputs: | ||
json: ${{ steps.julia-version.outputs.unique-json }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Create Project.toml | ||
shell: bash | ||
run: | | ||
# Need Julia 1.8 for `macos-latest` which defaults to Apple Silicon (aarch64) | ||
echo -e '[compat]\njulia = "1.8"' >Project.toml | ||
- uses: ./ | ||
id: julia-version | ||
with: | ||
versions: | | ||
- min # Oldest supported version | ||
- lts # Long-Term Stable | ||
- 1 # Latest release | ||
|
||
test: | ||
# e.g. `Julia 1.10.8 - ubuntu-latest` | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} | ||
needs: version | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
version: ${{ fromJSON(needs.version.outputs.json) }} | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: ${{ matrix.version }} | ||
- name: Julia version info | ||
shell: julia --color=yes {0} | ||
run: | | ||
using InteractiveUtils | ||
versioninfo() |
2 changes: 1 addition & 1 deletion
2
.github/workflows/licensed.yml → .github/workflows/licensed.yaml
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
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
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
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
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.