mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-23 07:52:22 +02:00
Further testing
This commit is contained in:
parent
e0a6d60058
commit
475ee8849a
110
.github/workflows/deployment.yml
vendored
110
.github/workflows/deployment.yml
vendored
|
@ -6,65 +6,65 @@ on:
|
|||
- fix-releases
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 10
|
||||
- run: |
|
||||
npm ci
|
||||
npm run build
|
||||
npx bundlesize
|
||||
npm run test:unit:coverage
|
||||
npm run test:e2e
|
||||
env:
|
||||
CI: true
|
||||
CI_REPO_NAME: ${{ github.event.repository.name }}
|
||||
CI_REPO_OWNER: ${{ github.event.organization.login }}
|
||||
CI_COMMIT_SHA: ${{ github.sha }}
|
||||
GIT_COMMIT: ${{ github.sha }}
|
||||
CI_BRANCH: ${{ github.head_ref }}
|
||||
BUNDLESIZE_GITHUB_TOKEN: ${{secrets.BUNDLESIZE_GITHUB_TOKEN}}
|
||||
FORCE_COLOR: 2
|
||||
HUSKY_SKIP_INSTALL: true
|
||||
# build-and-test:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# with:
|
||||
# fetch-depth: 1
|
||||
# - uses: actions/setup-node@v1
|
||||
# with:
|
||||
# node-version: 10
|
||||
# - run: |
|
||||
# npm ci
|
||||
# npm run build
|
||||
# npx bundlesize
|
||||
# npm run test:unit:coverage
|
||||
# npm run test:e2e
|
||||
# env:
|
||||
# CI: true
|
||||
# CI_REPO_NAME: ${{ github.event.repository.name }}
|
||||
# CI_REPO_OWNER: ${{ github.event.organization.login }}
|
||||
# CI_COMMIT_SHA: ${{ github.sha }}
|
||||
# GIT_COMMIT: ${{ github.sha }}
|
||||
# CI_BRANCH: ${{ github.head_ref }}
|
||||
# BUNDLESIZE_GITHUB_TOKEN: ${{secrets.BUNDLESIZE_GITHUB_TOKEN}}
|
||||
# FORCE_COLOR: 2
|
||||
# HUSKY_SKIP_INSTALL: true
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
run: bash <(curl -s https://codecov.io/bash)
|
||||
-f ./coverage/lcov.info
|
||||
-B ${{ github.head_ref }}
|
||||
-C ${{ github.sha }}
|
||||
-Z || echo 'Codecov upload failed'
|
||||
env:
|
||||
CI: true
|
||||
GITLAB_CI: true # pretend we are GitLab CI, while Codecov adding support for Github Actions
|
||||
CODECOV_ENV: github-action
|
||||
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
|
||||
# - name: Upload coverage to Codecov
|
||||
# run: bash <(curl -s https://codecov.io/bash)
|
||||
# -f ./coverage/lcov.info
|
||||
# -B ${{ github.head_ref }}
|
||||
# -C ${{ github.sha }}
|
||||
# -Z || echo 'Codecov upload failed'
|
||||
# env:
|
||||
# CI: true
|
||||
# GITLAB_CI: true # pretend we are GitLab CI, while Codecov adding support for Github Actions
|
||||
# CODECOV_ENV: github-action
|
||||
# CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
|
||||
|
||||
publish-npm:
|
||||
needs: build-and-test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 10
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm ci
|
||||
env:
|
||||
CYPRESS_INSTALL_BINARY: 0
|
||||
HUSKY_SKIP_INSTALL: true
|
||||
- run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
# publish-npm:
|
||||
# needs: build-and-test
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# with:
|
||||
# fetch-depth: 1
|
||||
# - uses: actions/setup-node@v1
|
||||
# with:
|
||||
# node-version: 10
|
||||
# registry-url: https://registry.npmjs.org/
|
||||
# - run: npm ci
|
||||
# env:
|
||||
# CYPRESS_INSTALL_BINARY: 0
|
||||
# HUSKY_SKIP_INSTALL: true
|
||||
# - run: npm publish
|
||||
# env:
|
||||
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
|
||||
deploy-gh-pages:
|
||||
needs: publish-npm
|
||||
# needs: publish-npm
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
|
Loading…
Reference in a new issue