generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into pkl-gha
- Loading branch information
Showing
11 changed files
with
682 additions
and
226 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
if($args.count -ne 1) { | ||
Write-Host "This command requires 1 arg with the version to check" | ||
exit 1 | ||
} | ||
|
||
$result = pkl.exe --version | Select-String -Pattern $args[0] -Quiet | ||
|
||
if($result -eq "True") { | ||
exit 0 | ||
} else { | ||
exit 1 | ||
} |
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,74 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
CHECK_VERSION: 0.26.0 | ||
|
||
jobs: | ||
test-typescript: | ||
name: TypeScript Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
id: setup-node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: npm | ||
|
||
- name: Install Dependencies | ||
id: npm-ci | ||
run: npm ci | ||
|
||
- name: Check Format | ||
id: npm-format-check | ||
run: npm run format:check | ||
|
||
- name: Lint | ||
id: npm-lint | ||
run: npm run lint | ||
|
||
- name: Test | ||
id: npm-ci-test | ||
run: npm run ci-test | ||
|
||
test-action: | ||
strategy: | ||
matrix: | ||
# Right now macos-13 is amd64 while macos-14 is aarch64 (M1) | ||
os: [ubuntu-latest, macos-13, macos-14, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Test Local Action | ||
id: test-action | ||
uses: ./ | ||
with: | ||
pkl-version: ${{ env.CHECK_VERSION }} | ||
|
||
- name: Confirm download (unix) | ||
run: pkl --version | grep "Pkl ${{ env.CHECK_VERSION }}" | ||
if: matrix.os != 'windows-latest' | ||
|
||
- name: Confirm download (windows) | ||
run: .github/workflows/Check-Version.ps1 "Pkl ${{ env.CHECK_VERSION }}" | ||
if: matrix.os == 'windows-latest' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.