Skip to content
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

Added CI for windows (fixes #68) #69

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
41 changes: 37 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@ concurrency:
cancel-in-progress: true

jobs:
ci:
ci-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup MetaCall CLI
run: wget -O - https://raw.githubusercontent.com/metacall/install/master/install.sh | sh

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
Expand All @@ -46,6 +43,9 @@ jobs:
# run: |
# npm run test

- name: Setup MetaCall CLI
run: wget -O - https://raw.githubusercontent.com/metacall/install/master/install.sh | sh

- name: Run Integration Tests
shell: bash
run: ./test.sh
Expand All @@ -56,3 +56,36 @@ jobs:
with:
access: 'public'
token: ${{ secrets.NPM_AUTH_TOKEN }}

ci-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '18'
registry-url: https://registry.npmjs.org

- name: Update NPM
run: npm install -g npm@latest

- name: Installing Dependencies
run: npm i

- name: Lint
run: npm run lint

- name: Build
run: npm run build

- name: Setup MetaCall CLI
run: |
cmd.exe /c "powershell -NoProfile -ExecutionPolicy unrestricted -Command `"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/metacall/install/master/install.ps1')))`""

- name: Run Integration Tests
shell: bash
run: ./test.sh

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@
"editor.suggestOnTriggerCharacters": true,
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[properties]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"arrowParens": "avoid"
"arrowParens": "avoid",
"endOfLine": "lf"
},
"eslintConfig": {
"env": {
Expand Down
4 changes: 1 addition & 3 deletions test/data/python-base-app/metacall.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"language_id": "py",
"path": ".",
"scripts": [
"index.py"
]
"scripts": ["index.py"]
}
8 changes: 2 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@
"outDir": "dist",
"esModuleInterop": true
},
"include": [
"types/*.ts",
"src/**/*.ts",
"test/**/*.js"
]
}
"include": ["types/*.ts", "src/**/*.ts", "test/**/*.js"]
}
Loading