Skip to content

Commit 7bdacf7

Browse files
authored
Merge pull request #850 from Shopify/remove-travis
Replace Travis CI with GitHub actions
2 parents 567f557 + b2faee5 commit 7bdacf7

File tree

6 files changed

+534
-200
lines changed

6 files changed

+534
-200
lines changed

.github/workflows/ci.yml

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
name: Node CI
22

33
on:
4-
push:
5-
branches: [ $default-branch ]
6-
pull_request:
7-
branches: [ $default-branch ]
4+
push
85

96
jobs:
10-
build:
7+
test:
118

129
runs-on: ubuntu-latest
1310

@@ -22,9 +19,7 @@ jobs:
2219
uses: actions/setup-node@v2
2320
with:
2421
node-version: ${{ matrix.node-version }}
25-
cache: 'npm'
26-
- name: Install dependencies
27-
run: yarn --frozen-lockfile
28-
- run: yarn run build --if-present
22+
cache: 'yarn'
23+
- run: yarn --frozen-lockfile
2924
- run: yarn test
3025

.travis.yml

-5
This file was deleted.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"lint:reporter-args": "test -n \"${CI}\" && >&2 echo -o $CIRCLE_TEST_REPORTS/junit/eslint.xml -f junit",
3030
"print-start-message": "wait-on file:.tmp/test/index.html file:.tmp/test/tests.js tcp:35729 tcp:4200 && echo \"\n\n⚡️⚡️⚡️ Good to go at http://localhost:4200 ⚡️⚡️⚡️\"",
3131
"schema:fetch": "graphql-js-schema-fetch --url 'https://graphql.myshopify.com/api/2021-07/graphql' --header 'Authorization: Basic MzUxYzEyMjAxN2QwZjJhOTU3ZDMyYWU3MjhhZDc0OWM=' | jq '.' > schema.json",
32-
"minify-umd:optimized": "echo \"/*\n$(cat LICENSE.txt)\n*/\" > index.umd.min.js && babel-minify index.umd.js >> index.umd.min.js",
33-
"minify-umd:unoptimized": "echo \"/*\n$(cat LICENSE.txt)\n*/\" > index.unoptimized.umd.min.js && babel-minify index.unoptimized.umd.js >> index.unoptimized.umd.min.js"
32+
"minify-umd:optimized": "babel-minify index.umd.js > index.umd.min.js",
33+
"minify-umd:unoptimized": "babel-minify index.unoptimized.umd.js > index.unoptimized.umd.min.js"
3434
},
3535
"author": "Shopify Inc.",
3636
"license": "MIT",
@@ -39,7 +39,7 @@
3939
"aws-sdk": "2.162.0",
4040
"babel": "6.23.0",
4141
"babel-core": "6.26.0",
42-
"babel-minify": "0.2.0",
42+
"babel-minify": "0.5.1",
4343
"babel-plugin-external-helpers": "6.22.0",
4444
"babel-preset-env": "1.6.0",
4545
"concurrently": "3.5.0",

rollup-unoptimized.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-env node */
22
import graphqlCompiler from 'rollup-plugin-graphql-js-client-compiler';
3+
import {readFileSync} from 'fs';
34
import generateBaseRollupConfig from './rollup-common.config';
45

56
const config = generateBaseRollupConfig();
@@ -17,6 +18,11 @@ config.targets = [
1718
].map((c) => {
1819
return {
1920
dest: `index.unoptimized${c.suffix}.js`,
21+
banner: `/*
22+
@license
23+
${readFileSync('LICENSE.txt')}
24+
*/
25+
`,
2026
format: c.format
2127
};
2228
});

rollup.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env node */
2+
import {readFileSync} from 'fs';
23
import graphqlCompiler from 'rollup-plugin-graphql-js-client-compiler';
34
import generateBaseRollupConfig from './rollup-common.config';
45

@@ -20,6 +21,11 @@ config.targets = [
2021
].map((c) => {
2122
return {
2223
dest: `index${c.suffix}.js`,
24+
banner: `/*
25+
@license
26+
${readFileSync('LICENSE.txt')}
27+
*/
28+
`,
2329
format: c.format
2430
};
2531
});

0 commit comments

Comments
 (0)