Skip to content

Commit

Permalink
add ci to test template
Browse files Browse the repository at this point in the history
Signed-off-by: karthik2804 <karthik.ganeshram@fermyon.com>
  • Loading branch information
karthik2804 committed Jul 30, 2024
1 parent db593b0 commit 805e145
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,43 @@ jobs:
shell: bash
run: |
cd test
./test.sh
./test.sh
test_template:
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 spin
uses: engineerd/configurator@v0.0.8
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: Install templates
shell: bash
run: spin templates install --dir .

- name: Create new project
shell: bash
run: spin new -t http-ts test-project -a

- name: Install dependencies of the test project
shell: bash
run: |
cd test-project
npm install
- name: Build the application
shell: bash
run: |
cd test-project
npm run build

0 comments on commit 805e145

Please sign in to comment.