Skip to content

Commit

Permalink
Revert changes to just posting a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Mar 29, 2021
1 parent ad4e574 commit 92974dd
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 97 deletions.
85 changes: 83 additions & 2 deletions .circleci/config.yml
@@ -1,7 +1,88 @@
version: 2

jobs:
noop:
analysis:
docker:
- image: rollupcabal/circleci-node-base:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Installing Dependencies
command: npm ci --ignore-scripts
- run:
name: Running linting
command: npm run ci:lint
- run:
name: Running NPM Security Audit
command: npm run security
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
node-v10-latest:
docker:
- image: rollupcabal/circleci-node-v10:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Running tests
command: npm run ci:test
node-v12-latest:
docker:
- image: rollupcabal/circleci-node-v12:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Running tests
command: npm run ci:test:only
- store_artifacts:
name: Storing browser build for REPL
path: /home/circleci/project/dist/rollup.browser.js
destination: rollup.browser.js
- run:
name: Post REPL comment
command: ./scripts/post-comment.js
node-v14-latest:
docker:
- image: rollupcabal/circleci-node-v14:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Running tests with coverage
command: npm run ci:coverage


workflows:
version: 2
version: 2
validate-test:
jobs:
- analysis:
filters:
tags:
only: /.*/
- node-v10-latest:
requires:
- analysis
filters:
tags:
only: /.*/
- node-v12-latest:
requires:
- analysis
filters:
tags:
only: /.*/
- node-v14-latest:
requires:
- analysis
filters:
tags:
only: /.*/
32 changes: 32 additions & 0 deletions .github/workflows/node-windows.yml
@@ -0,0 +1,32 @@
name: Node

on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: windows-2019

strategy:
matrix:
node: [ '14', '12', '10' ]

name: ${{ matrix.node }} (Windows)
steps:
- name: Configure git line-breaks
run: git config --global core.autocrlf false
- name: Checkout Commit
uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run tests
run: npm test
env:
CI: true
4 changes: 2 additions & 2 deletions .github/workflows/pr-comment.yml
Expand Up @@ -28,6 +28,6 @@ jobs:
npm install ${{ github.event.pull_request.head.repo.full_name }}#${{ github.event.pull_request.head.ref }}
```
Once a build has completed, you can try out the pull request in the REPL:
https://rollupjs.org/repl/?pr=${{ github.event.pull_request.number }}
Once a build has completed, you can try out the pull request in the REPL by inserting the CircleCI build number in the link below:
`https://rollupjs.org/repl/?circleci==<build_number>`
93 changes: 0 additions & 93 deletions .github/workflows/tests.yml

This file was deleted.

0 comments on commit 92974dd

Please sign in to comment.