Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Github actions only #4042

Merged
merged 20 commits into from Apr 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
88 changes: 0 additions & 88 deletions .circleci/config.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/node-windows.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/pr-comment.yml

This file was deleted.

66 changes: 66 additions & 0 deletions .github/workflows/repl-artefacts.yml
@@ -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 }}
93 changes: 93 additions & 0 deletions .github/workflows/tests.yml
@@ -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
61 changes: 0 additions & 61 deletions scripts/post-comment.js

This file was deleted.