-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[meta] migrate from travis-ci to Github Actions
- Loading branch information
Showing
5 changed files
with
71 additions
and
37 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,17 @@ | ||
name: 'ecma-262' | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
build: | ||
name: 'build & lint ecmarkup' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/install@56f291b2a0d9e3bce72634356ae949b1e054b9f8 | ||
name: 'nvm install lts/* && npm install' | ||
with: | ||
node-version: lts/* | ||
use-npm-ci: true | ||
- run: 'npm ci && npm run build-master' |
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,21 @@ | ||
name: 'ecma-262' | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
name: 'deploy github pages' | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'tc39/ecma262' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/install@56f291b2a0d9e3bce72634356ae949b1e054b9f8 | ||
name: 'nvm install lts/* && npm install' | ||
with: | ||
node-version: lts/* | ||
use-npm-ci: true | ||
- run: npm ci && npm run build-only ./scripts/auto-deploy.sh |
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,24 @@ | ||
name: 'ecma-262' | ||
|
||
on: [pull_request_target] | ||
|
||
jobs: | ||
upload: | ||
name: 'upload PR preview' | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'tc39/ecma262' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/install@56f291b2a0d9e3bce72634356ae949b1e054b9f8 | ||
name: 'nvm install lts/* && npm install' | ||
with: | ||
node-version: lts/* | ||
use-npm-ci: true | ||
- run: npm run build-only | ||
- run: node scripts/insert_snapshot_warning | ||
- run: node scripts/publish-preview | ||
env: | ||
CI_PREVIEW_TOKEN: ${{ secrets.CI_PREVIEW_TOKEN }} | ||
PULL_REQUEST: ${{ github.event.number }} | ||
|
This file was deleted.
Oops, something went wrong.
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