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.
ci: prerelease test infrastructure (remix-run#1408)
- Loading branch information
Showing
26 changed files
with
3,707 additions
and
1,405 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: arc prerelease deployment test | ||
|
||
on: | ||
release: | ||
types: [prereleased] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
|
||
- run: echo "::set-output name=version::$(cat .nvmrc)" | ||
id: nvmrc | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "${{ steps.nvmrc.outputs.version }}" | ||
|
||
- run: echo "::set-output name=dir::$(yarn cache dir)" | ||
id: yarn-cache | ||
|
||
- name: Restore dependency cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: "${{ steps.yarn-cache.outputs.dir }}" | ||
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-cache- | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- run: mkdir -p deployment-test | ||
|
||
- name: Install latest version of npm | ||
run: npm install -g npm@latest | ||
|
||
- name: Deploy to Arc | ||
run: node ./scripts/deployment-test/arc.mjs | ||
env: | ||
CI: true | ||
AWS_ACCESS_KEY_ID: ${{ secrets.TEST_AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.TEST_AWS_SECRET_ACCESS_KEY }} |
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,48 @@ | ||
name: cloudflare pages prerelease deployment test | ||
|
||
on: | ||
release: | ||
types: [prereleased] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
# Miniflare requires at least Node.js 16.7.0. | ||
node-version: 16 | ||
|
||
- run: echo "::set-output name=dir::$(yarn cache dir)" | ||
id: yarn-cache | ||
|
||
- name: Restore dependency cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: "${{ steps.yarn-cache.outputs.dir }}" | ||
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-cache- | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- run: mkdir -p deployment-test | ||
|
||
- name: Install latest version of npm | ||
run: npm install -g npm@latest | ||
|
||
- name: Deploy to Cloudflare Pages | ||
run: node ./scripts/deployment-test/cf-pages.mjs | ||
env: | ||
CF_ACCOUNT_ID: ${{ secrets.TEST_CF_ACCOUNT_ID }} | ||
CF_GLOBAL_API_KEY: ${{ secrets.TEST_CF_GLOBAL_API_KEY }} | ||
CF_EMAIL: ${{ secrets.TEST_CF_EMAIL }} | ||
GITHUB_TOKEN: ${{ secrets.TEST_CF_GITHUB_TOKEN }} |
49 changes: 49 additions & 0 deletions
49
.github/workflows/cf-workers-prerelease-deployment.test.yml
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,49 @@ | ||
name: cloudflare workers prerelease deployment test | ||
|
||
on: | ||
release: | ||
types: [prereleased] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
# Miniflare requires at least Node.js 16.7.0. | ||
node-version: 16 | ||
|
||
- run: echo "::set-output name=dir::$(yarn cache dir)" | ||
id: yarn-cache | ||
|
||
- name: Restore dependency cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: "${{ steps.yarn-cache.outputs.dir }}" | ||
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-cache- | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- run: mkdir -p deployment-test | ||
|
||
- name: Install latest version of npm | ||
run: npm install -g npm@latest | ||
|
||
- name: Install Wrangler | ||
run: npm install -g @cloudflare/wrangler | ||
|
||
- name: Deploy to Cloudflare Workers | ||
run: node ./scripts/deployment-test/cf-workers.mjs | ||
env: | ||
CF_ACCOUNT_ID: ${{ secrets.TEST_CF_ACCOUNT_ID }} | ||
CF_API_TOKEN: ${{ secrets.TEST_CF_API_TOKEN }} |
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,50 @@ | ||
name: fly prerelease deployment test | ||
|
||
on: | ||
release: | ||
types: [prereleased] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
|
||
- run: echo "::set-output name=version::$(cat .nvmrc)" | ||
id: nvmrc | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "${{ steps.nvmrc.outputs.version }}" | ||
|
||
- run: echo "::set-output name=dir::$(yarn cache dir)" | ||
id: yarn-cache | ||
|
||
- name: Restore dependency cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: "${{ steps.yarn-cache.outputs.dir }}" | ||
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-cache- | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- run: mkdir -p deployment-test | ||
|
||
- name: Install latest version of npm | ||
run: npm install -g npm@latest | ||
|
||
- name: Install the Fly CLI | ||
run: curl -L https://fly.io/install.sh | FLYCTL_INSTALL=/usr/local sh | ||
|
||
- name: Deploy to Fly | ||
run: node ./scripts/deployment-test/fly.mjs | ||
env: | ||
FLY_API_TOKEN: ${{ secrets.TEST_FLY_TOKEN }} |
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,47 @@ | ||
name: netlify prerelease deployment test | ||
|
||
on: | ||
release: | ||
types: [prereleased] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
|
||
- run: echo "::set-output name=version::$(cat .nvmrc)" | ||
id: nvmrc | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "${{ steps.nvmrc.outputs.version }}" | ||
|
||
- run: echo "::set-output name=dir::$(yarn cache dir)" | ||
id: yarn-cache | ||
|
||
- name: Restore dependency cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: "${{ steps.yarn-cache.outputs.dir }}" | ||
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-cache- | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- run: mkdir -p deployment-test | ||
|
||
- name: Install latest version of npm | ||
run: npm install -g npm@latest | ||
|
||
- name: Deploy to Netlify | ||
run: node ./scripts/deployment-test/netlify.mjs | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.TEST_NETLIFY_TOKEN }} |
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,48 @@ | ||
name: vercel prerelease deployment test | ||
|
||
on: | ||
release: | ||
types: [prereleased] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
|
||
- run: echo "::set-output name=version::$(cat .nvmrc)" | ||
id: nvmrc | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "${{ steps.nvmrc.outputs.version }}" | ||
|
||
- run: echo "::set-output name=dir::$(yarn cache dir)" | ||
id: yarn-cache | ||
|
||
- name: Restore dependency cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: "${{ steps.yarn-cache.outputs.dir }}" | ||
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-cache- | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- run: mkdir -p deployment-test | ||
|
||
- name: Install latest version of npm | ||
run: npm install -g npm@latest | ||
|
||
- name: Deploy to Vercel | ||
run: node ./scripts/deployment-test/vercel.mjs | ||
env: | ||
VERCEL_TOKEN: ${{ secrets.TEST_VERCEL_TOKEN }} | ||
VERCEL_ORG_ID: ${{ secrets.TEST_VERCEL_USER_ID }} |
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 |
---|---|---|
|
@@ -13,3 +13,5 @@ yarn-error.log | |
/fixtures/deno-app | ||
|
||
.eslintcache | ||
|
||
/deployment-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
Oops, something went wrong.