Skip to content

Commit 3b46779

Browse files
authored
Add Github Actions for CI (#150)
* Add Github Actions for CI * Print errors in a readable fashion
1 parent 76f32a4 commit 3b46779

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/CI.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version:
11+
- 10
12+
- 12
13+
- 14
14+
command:
15+
- lint
16+
- test
17+
- build
18+
steps:
19+
- uses: actions/checkout@v1
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- run: |
25+
yarn install
26+
- run: |
27+
yarn ${{ matrix.command }}

test/upload_test_helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const S3_URL = `https://s3.dualstack.${s3Opts.AWS_REGION}.amazonaws.com/${s3Opts
1616
OUTPUT_FILE_NAME = 's3Test',
1717
OUTPUT_PATH = path.resolve(__dirname, '.tmp'),
1818
ENTRY_PATH = path.resolve(__dirname, 'fixtures/index.js'),
19-
createBuildFailError = (errors) => `Webpack Build Failed ${errors}`
19+
createBuildFailError = (errors) => `Webpack Build Failed ${errors.map(JSON.stringify)}`
2020

2121
var deleteFolderRecursive = function(path) {
2222
if (fs.existsSync(path)) {

0 commit comments

Comments
 (0)