forked from remix-run/remix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-v1.5.0' into dev
- Loading branch information
Showing
250 changed files
with
2,488 additions
and
633 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
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
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 |
---|---|---|
@@ -0,0 +1,248 @@ | ||
name: 🥞 Remix Stacks Test | ||
|
||
on: | ||
repository_dispatch: | ||
types: [release] | ||
|
||
jobs: | ||
setup: | ||
name: Remix Stacks Test | ||
if: github.repository == 'remix-run/remix' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
stack: | ||
- repo: "remix-run/indie-stack" | ||
name: "indie" | ||
- repo: "remix-run/blues-stack" | ||
name: "blues" | ||
- repo: "remix-run/grunge-stack" | ||
name: "grunge" | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: ⚒️ Create new ${{ matrix.stack.name }} app with ${{ github.event.client_payload.version }} | ||
run: | | ||
npx -y create-remix@${{ github.event.client_payload.version }} ${{ matrix.stack.name }} --template ${{ matrix.stack.repo }} --typescript --no-install | ||
- name: 📥 Download deps | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
working-directory: ${{ matrix.stack.name }} | ||
useLockFile: false | ||
|
||
- name: Run `remix init` | ||
run: | | ||
cd ${{ matrix.stack.name }} | ||
npx remix init | ||
- name: 🏄 Copy test env vars | ||
run: | | ||
cd ${{ matrix.stack.name }} | ||
cp .env.example .env | ||
- name: 📁 Zip artifact | ||
run: zip ${{ matrix.stack.name }}.zip ./${{ matrix.stack.name }} -r -x "**/node_modules/*" | ||
|
||
- name: 🗄️ Archive ${{ matrix.stack.name }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ matrix.stack.name }}-archive | ||
path: ${{ matrix.stack.name }}.zip | ||
|
||
lint: | ||
name: ⬣ ESLint | ||
if: github.repository == 'remix-run/remix' | ||
needs: [setup] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
stack: | ||
- repo: "remix-run/indie-stack" | ||
name: "indie" | ||
- repo: "remix-run/blues-stack" | ||
name: "blues" | ||
- repo: "remix-run/grunge-stack" | ||
name: "grunge" | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: 🗄️ Restore ${{ matrix.stack.name }} | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ matrix.stack.name }}-archive | ||
|
||
- name: 📁 Unzip artifact | ||
run: unzip ${{ matrix.stack.name }}.zip | ||
|
||
- name: 📥 Download deps | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
working-directory: ${{ matrix.stack.name }} | ||
|
||
- name: 🔬 Lint | ||
run: | | ||
cd ${{ matrix.stack.name }} | ||
npm run lint | ||
typecheck: | ||
name: ʦ TypeScript | ||
needs: [setup] | ||
if: github.repository == 'remix-run/remix' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
stack: | ||
- repo: "remix-run/indie-stack" | ||
name: "indie" | ||
- repo: "remix-run/blues-stack" | ||
name: "blues" | ||
- repo: "remix-run/grunge-stack" | ||
name: "grunge" | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: 🗄️ Restore ${{ matrix.stack.name }} | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ matrix.stack.name }}-archive | ||
|
||
- name: 📁 Unzip artifact | ||
run: unzip ${{ matrix.stack.name }}.zip | ||
|
||
- name: 📥 Download deps | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
working-directory: ${{ matrix.stack.name }} | ||
|
||
- name: 🔎 Type check | ||
run: | | ||
cd ${{ matrix.stack.name }} | ||
npm run typecheck --if-present | ||
vitest: | ||
name: ⚡ Vitest | ||
if: github.repository == 'remix-run/remix' | ||
needs: [setup] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
stack: | ||
- repo: "remix-run/indie-stack" | ||
name: "indie" | ||
- repo: "remix-run/blues-stack" | ||
name: "blues" | ||
- repo: "remix-run/grunge-stack" | ||
name: "grunge" | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: 🗄️ Restore ${{ matrix.stack.name }} | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ matrix.stack.name }}-archive | ||
|
||
- name: 📁 Unzip artifact | ||
run: unzip ${{ matrix.stack.name }}.zip | ||
|
||
- name: 📥 Download deps | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
working-directory: ${{ matrix.stack.name }} | ||
|
||
- name: ⚡ Run vitest | ||
run: | | ||
cd ${{ matrix.stack.name }} | ||
npm run test -- --coverage | ||
cypress: | ||
name: ⚫️ Cypress | ||
if: github.repository == 'remix-run/remix' | ||
needs: [setup] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
stack: | ||
- repo: "remix-run/indie-stack" | ||
name: "indie" | ||
cypress: "npm run start:mocks" | ||
- repo: "remix-run/blues-stack" | ||
name: "blues" | ||
cypress: "npm run start:mocks" | ||
- repo: "remix-run/grunge-stack" | ||
name: "grunge" | ||
cypress: "npm run dev" | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: 🗄️ Restore ${{ matrix.stack.name }} | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ matrix.stack.name }}-archive | ||
|
||
- name: 📁 Unzip artifact | ||
run: unzip ${{ matrix.stack.name }}.zip | ||
|
||
- name: 📥 Download deps | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
working-directory: ${{ matrix.stack.name }} | ||
|
||
- name: 🐳 Docker compose | ||
if: ${{ matrix.stack.name == 'blues' }} | ||
# the sleep is just there to give time for postgres to get started | ||
run: | | ||
cd ${{ matrix.stack.name }} | ||
docker-compose up -d && sleep 3 | ||
env: | ||
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/postgres" | ||
|
||
- name: 🛠 Setup Database | ||
if: ${{ matrix.stack.name != 'grunge' }} | ||
run: | | ||
cd ${{ matrix.stack.name }} | ||
npx prisma migrate reset --force | ||
- name: ⚙️ Build | ||
run: | | ||
cd ${{ matrix.stack.name }} | ||
npm run build | ||
- name: 🌳 Cypress run | ||
uses: cypress-io/github-action@v3 | ||
with: | ||
start: ${{ matrix.stack.cypress }} | ||
wait-on: "http://localhost:8811" | ||
working-directory: ${{ matrix.stack.name }} | ||
env: | ||
PORT: "8811" |
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
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
Oops, something went wrong.