-
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 pull request #3 from ayys/main
Adds version input to the action
- Loading branch information
Showing
6 changed files
with
79 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,55 @@ jobs: | |
# Verify Wasmer runs | ||
- name: Verify Wasmer runs | ||
run: | | ||
wapm config set registry.url "https://registry.wapm.io" | ||
mkdir test-dir | ||
cd test-dir | ||
wapm install robert/echo | ||
wasmer run -- ./wapm_packages/robert/echo\@0.1.5/echo.wasm "${{ env.ECHO_STRING }}" > output.txt | ||
grep "${{ env.ECHO_STRING }}" output.txt | ||
test-versions: | ||
name: Test version on ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- macos-latest | ||
- ubuntu-latest | ||
- windows-latest | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
# Checkout source code | ||
- name: Checkout source code | ||
uses: actions/checkout@v2 | ||
|
||
# Setup Wasmer | ||
- name: Setup Wasmer | ||
uses: ./ | ||
with: | ||
version: "v3.0.0-rc.2" | ||
|
||
# Verify Wasmer is installed | ||
- name: Verify Wasmer is installed | ||
shell: pwsh | ||
run: | | ||
Get-Command wasmer | ||
Get-Command wapm | ||
Get-Command wax | ||
# Verify Wasmer version is correct | ||
- name: Verify Wasmer version is correct | ||
uses: MeilCli/[email protected] | ||
with: | ||
command: wapm execute echo ${{ env.ECHO_STRING }} | ||
expect_contain: ${{ env.ECHO_STRING }} | ||
command: wasmer --version | ||
expect_contain: "wasmer 3.0.0-rc.2" | ||
|
||
# Verify Wasmer runs | ||
- name: Verify Wasmer runs | ||
run: | | ||
wapm config set registry.url "https://registry.wapm.io" | ||
mkdir test-dir | ||
cd test-dir | ||
wapm install robert/echo | ||
wasmer run -- ./wapm_packages/robert/echo\@0.1.5/echo.wasm "${{ env.ECHO_STRING }}" > output.txt | ||
grep "${{ env.ECHO_STRING }}" output.txt |
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 |
---|---|---|
|
@@ -6,4 +6,8 @@ branding: | |
icon: package | ||
runs: | ||
using: node12 | ||
main: dist/index.js | ||
main: dist/index.js | ||
|
||
inputs: | ||
version: | ||
default: '' |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"compilerOptions": { | ||
"esModuleInterop": true, | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"outDir": "dist", | ||
"strict": true, | ||
"target": "esnext" | ||
}, | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
} | ||
"compilerOptions": { | ||
"target": "es2019", | ||
"module": "commonjs", | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"outDir": "dist", | ||
"lib": ["esnext"] | ||
}, | ||
"exclude": ["node_modules"] | ||
} |