-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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 #9580 from marmelab/create-react-admin-gh-action
create-react-admin gh action to test new apps
- Loading branch information
Showing
3 changed files
with
26 additions
and
38 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 |
---|---|---|
|
@@ -133,4 +133,27 @@ jobs: | |
- name: Run GreenFrame Analysis | ||
uses: marmelab/[email protected] | ||
env: | ||
GREENFRAME_SECRET_TOKEN: ${{secrets.GREENFRAME_SECRET_TOKEN}} | ||
GREENFRAME_SECRET_TOKEN: ${{secrets.GREENFRAME_SECRET_TOKEN}} | ||
|
||
create-react-admin: | ||
runs-on: ubuntu-latest | ||
name: create-react-admin | ||
needs: [] | ||
if: success() && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/next') | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js LTS | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '18.x' | ||
- uses: bahmutov/npm-install@v1 | ||
with: | ||
install-command: yarn --immutable | ||
- name: Build create-react-admin | ||
run: make build-create-react-admin install | ||
- name: Create new project | ||
run: ./node_modules/.bin/create-react-admin myadmin --data-provider ra-data-fakerest --auth-provider local-auth-provider --install npm | ||
- name: Run the tests | ||
working-directory: ./myadmin | ||
run: npm run test |
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
36 changes: 0 additions & 36 deletions
36
packages/create-react-admin/templates/ra-data-fakerest/src/App.spec.tsx
This file was deleted.
Oops, something went wrong.