Skip to content

Commit

Permalink
Updating working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
macieklad committed Dec 9, 2024
1 parent e8d1234 commit 85f45ac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/check-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ jobs:

- name: Setup test project
run: |
npx --yes create-adonisjs --kit web --auth-guard session --db sqlite adonisjsx-test
cd adonisjsx-test
npx --yes create-adonisjs --kit web --auth-guard session --db sqlite adonisjsx-test
- name: Install package
run: npm install adonisjsx
working-directory: ./adonisjsx-test

- name: Configure package
run: node ace configure adonisjsx
working-directory: ./adonisjsx-test

- name: Setup tsconfig
run: |
Expand All @@ -39,13 +40,15 @@ jobs:
}
}
EOF > tsconfig.json
working-directory: ./adonisjsx-test

- name: Setup routes
run: |
cat << EOF
import router from '@adonisjs/core/services/router'
router.get('/', async ({ jsx }) => jsx.render('JSX works'))
EOF > start/routes.ts
working-directory: ./adonisjsx-test

- name: Setup test script
run: |
Expand All @@ -60,6 +63,8 @@ jobs:
fi
EOF > test.sh
chmod +x test.sh
working-directory: ./adonisjsx-test

- name: Check if server starts
run: npx --yes start-server-and-test dev http://localhost:3333 ./test.sh
working-directory: ./adonisjsx-test

0 comments on commit 85f45ac

Please sign in to comment.