Skip to content

Commit

Permalink
Merge pull request #239 from karthik2804/add_Ci_sdk_v2
Browse files Browse the repository at this point in the history
Add ci sdk v2
  • Loading branch information
karthik2804 authored May 15, 2024
2 parents abcac82 + 9f34aa9 commit 09afb3a
Show file tree
Hide file tree
Showing 30 changed files with 3,268 additions and 725 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test

on:
push:
branches: [ feat/sdk-v2 ]
pull_request:
branches: [ feat/sdk-v2 ]
workflow_dispatch:

jobs:
lint_and_test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install depencies
shell: bash
run: npm install

- name: Run prettier check
shell: bash
run: npm run fmt-check

- name: Install spin
uses: engineerd/[email protected]
with:
name: "spin"
url: "https://github.com/fermyon/spin/releases/download/v2.5.0/spin-v2.5.0-linux-amd64.tar.gz"
pathInArchive: "spin"

- name: Run Test
shell: bash
run: |
cd test
./test.sh
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": true,
"singleQuote": true,
"arrowParens": "avoid"
}
99 changes: 39 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"fmt": "prettier --write \"src/**/*.{ts,tsx,js,jsx}\"",
"fmt-check": "prettier --check \"src/**/*.{ts,tsx,js,jsx}\"",
"build": "tsc && cp -r src/types ./lib/"
},
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"prettier": "^3.2.5",
"typescript": "^5.4.3"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 09afb3a

Please sign in to comment.