Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9bedf2
commit 8698f50
Showing
6 changed files
with
159 additions
and
216 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Upload REPL artefacts | ||
|
||
on: | ||
pull_request_target: | ||
|
||
jobs: | ||
upload: | ||
runs-on: ubuntu-latest | ||
name: Upload | ||
steps: | ||
- name: Checkout Commit | ||
uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
- name: Build artefacts | ||
run: npm run build:cjs && npm run build:bootstrap | ||
- name: Upload "${{ github.event.pull_request.number }}/rollup.browser.js" to bucket | ||
uses: zdurham/s3-upload-github-action@master | ||
with: | ||
args: --cache-control max-age=300,public | ||
env: | ||
FILE: dist/rollup.browser.js | ||
AWS_REGION: ${{ secrets.AWS_REGION }} | ||
S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | ||
S3_KEY: ${{ github.event.pull_request.number }}/rollup.browser.js | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
- name: Upload "${{ github.event.pull_request.number }}/rollup.browser.js.map" to bucket | ||
uses: zdurham/s3-upload-github-action@master | ||
with: | ||
args: --cache-control max-age=300,public | ||
env: | ||
FILE: dist/rollup.browser.js.map | ||
AWS_REGION: ${{ secrets.AWS_REGION }} | ||
S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | ||
S3_KEY: ${{ github.event.pull_request.number }}/rollup.browser.js.map | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
- name: Find Comment | ||
uses: peter-evans/find-comment@v1 | ||
id: fc | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
comment-author: 'github-actions[bot]' | ||
body-includes: 'Thank you for your contribution!' | ||
- name: Create or update comment | ||
uses: peter-evans/create-or-update-comment@v1 | ||
with: | ||
comment-id: ${{ steps.fc.outputs.comment-id }} | ||
issue-number: ${{ github.event.pull_request.number }} | ||
edit-mode: replace | ||
body: | | ||
### Thank you for your contribution! ❤️ | ||
You can try out this pull request locally by installing Rollup via | ||
```bash | ||
npm install ${{ github.event.pull_request.head.repo.full_name }}#${{ github.event.pull_request.head.ref }} | ||
``` | ||
or load it into the REPL: | ||
https://rollupjs.org/repl/?pr=${{ github.event.pull_request.number }} |
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,93 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
linux14: | ||
runs-on: ubuntu-latest | ||
name: Node 14 + Coverage (Linux) | ||
steps: | ||
- name: Checkout Commit | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
- name: Run tests with coverage | ||
run: npm run ci:coverage | ||
env: | ||
CI: true | ||
|
||
linux12: | ||
runs-on: ubuntu-latest | ||
name: Node 12 + Extra Tests (Linux) | ||
steps: | ||
- name: Checkout Commit | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12' | ||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
- name: Lint | ||
run: npm run ci:lint | ||
- name: Vulnerabilities | ||
run: npm run security | ||
- name: Run all tests | ||
run: npm run ci:test | ||
env: | ||
CI: true | ||
|
||
linux10: | ||
runs-on: ubuntu-latest | ||
name: Node 10 (Linux) | ||
steps: | ||
- name: Checkout Commit | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '10' | ||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
- name: Run tests | ||
run: npm run ci:test:only | ||
env: | ||
CI: true | ||
|
||
windows: | ||
runs-on: windows-2019 | ||
strategy: | ||
matrix: | ||
node: ['14', '12', '10'] | ||
name: Node ${{ matrix.node }} (Windows) | ||
steps: | ||
- name: Configure git line-breaks | ||
run: git config --global core.autocrlf false | ||
- name: Checkout Commit | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
- name: Run tests | ||
run: npm test | ||
env: | ||
CI: true |
This file was deleted.
Oops, something went wrong.