diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000000..6cad64fd938 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: Node.JS CI +on: [push] +jobs: + test: + runs-on: ubuntu-latest + name: lint & test + steps: + - uses: actions/checkout@v1 + - uses: bahmutov/npm-install@v1 + - run: yarn ci + e2e: + runs-on: ubuntu-latest + name: cypress + steps: + - uses: actions/checkout@v1 + - uses: bahmutov/npm-install@v1 + - run: yarn ci-e2e diff --git a/.github/workflows/fork.yml b/.github/workflows/fork.yml.archived similarity index 100% rename from .github/workflows/fork.yml rename to .github/workflows/fork.yml.archived diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml deleted file mode 100644 index e967b5c2734..00000000000 --- a/.github/workflows/issue.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: "Issues" -on: - issues: - types: [closed] -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Discord Notification - Issues - env: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WH_GRAPHIQL_GENERAL }} - uses: Ilshidur/action-discord@master - with: - args: 'Issue [{{ EVENT_PAYLOAD.issue.title }}]({{ EVENT_PAYLOAD.issue.html_url }}) {{ EVENT_PAYLOAD.action }} by [@{{ EVENT_PAYLOAD.issue.user.login }}]({{ EVENT_PAYLOAD.issue.user.html_url }})' - - diff --git a/.github/workflows/issue.yml.archived b/.github/workflows/issue.yml.archived new file mode 100644 index 00000000000..191b94f0d50 --- /dev/null +++ b/.github/workflows/issue.yml.archived @@ -0,0 +1,16 @@ +# name: "Issues" +# on: +# issues: +# types: [closed] +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Discord Notification - Issues +# env: +# DISCORD_WEBHOOK: ${{ secrets.DISCORD_WH_GRAPHIQL_GENERAL }} +# uses: Ilshidur/action-discord@master +# with: +# args: 'Issue [{{ EVENT_PAYLOAD.issue.title }}]({{ EVENT_PAYLOAD.issue.html_url }}) {{ EVENT_PAYLOAD.action }} by [@{{ EVENT_PAYLOAD.issue.user.login }}]({{ EVENT_PAYLOAD.issue.user.html_url }})' + + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f64fcfddd23..00000000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: node_js -node_js: - - 10 - - 12 -before_install: - - npm config set spin false --global -addons: - apt: - packages: - # Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves - - libgconf-2-4 -cache: - yarn: true - directories: - - ~/.cache -install: - - yarn --frozen-lockfile # ignore prepublish scripts - - cypress install -script: - - git fetch --all - - yarn run ci -after_success: - - codecov - diff --git a/package.json b/package.json index 57e07a4e342..3cf53d27031 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "scripts": { "build": "yarn run build-clean && yarn build-ts-cjs && yarn build-babel", - "build-babel": "lerna run build --scope codemirror-graphql", + "build-babel": "yarn workspace codemirror-graphql run build", "build-ts": "yarn run tsc --clean && yarn run tsc", "build-ts-cjs": "yarn run tsc resources/tsconfig.build.cjs.json --clean && yarn run tsc resources/tsconfig.build.cjs.json", "build-ts-esm": "yarn run tsc resources/tsconfig.build.esm.json --clean && yarn run tsc resources/tsconfig.build.esm.json", @@ -37,7 +37,9 @@ "test": "jest", "test-mocha": "yarn workspace codemirror-graphql run test", "test-all": "yarn test && yarn test-mocha", - "ci": "yarn lint && yarn run check && yarn build && yarn test && yarn test-mocha && yarn build-bundles && yarn e2e && yarn build-validate", + "ci": "yarn lint && yarn run check && yarn build && yarn test", + "ci-e2e": "yarn build-ts-esm && yarn workspace codemirror-graphql run build && yarn workspace graphiql run build-bundles-min && yarn e2e", + "ci-validate": "yarn build-ts-esm && yarn build-validate", "testonly": "jest && yarn workspace codemirror-graphql run test", "e2e": "yarn workspace graphiql e2e", "cypress-open": "yarn workspace graphiql cypress-open",