Skip to content

Commit

Permalink
Merge pull request #9580 from marmelab/create-react-admin-gh-action
Browse files Browse the repository at this point in the history
create-react-admin gh action to test new apps
  • Loading branch information
slax57 authored Jan 25, 2024
2 parents 76701a6 + df88dd5 commit 37180e4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 38 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion packages/create-react-admin/src/generateProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export const generateProject = async (state: ProjectConfiguration) => {

copyDirectoryFiles(
path.join(__dirname, '../templates/common'),
projectDirectory
projectDirectory,
['gitignore']
);
replaceTokensInFile(path.join(projectDirectory, 'index.html'), state);
replaceTokensInFile(
Expand Down

This file was deleted.

0 comments on commit 37180e4

Please sign in to comment.