move ticlo tests out of spec folder to tests folder #122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- master | |
- ghaction | |
env: | |
YARN_IGNORE_NODE: 1 | |
FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: enable corepack | |
run: corepack enable | |
- run: yarn install | |
- run: yarn prettier-check | |
# - run: yarn build-package | |
test-browser: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: MathRobin/timezone-action@v1.1 | |
with: | |
timezoneLinux: "America/Los_Angeles" | |
- uses: actions/checkout@v2 | |
- name: enable corepack | |
run: corepack enable | |
- run: yarn install | |
- name: make dir | |
run: | | |
mkdir coverage | |
mkdir dist | |
- run: yarn build-icons | |
- run: yarn build-less | |
- name: Vitest Browser Build Cache | |
run: yarn test-browser-coverage | |
continue-on-error: true | |
- name: Vitest Browser | |
run: yarn test-browser-coverage | |
- name: Coveralls Vitest Browser | |
uses: coverallsapp/github-action@master | |
env: | |
NODE_COVERALLS_DEBUG: 1 | |
with: | |
github-token: ${{ secrets.github_token }} | |
path-to-lcov: ./coverage/browser/lcov.info | |
parallel: true | |
flag-name: browser | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: MathRobin/timezone-action@v1.1 | |
with: | |
timezoneLinux: "America/Los_Angeles" | |
- uses: actions/checkout@v2 | |
- name: enable corepack | |
run: corepack enable | |
- run: yarn install | |
- name: make dir | |
run: mkdir coverage | |
- name: Vitest | |
run: yarn test-coverage | |
- name: Coveralls Vitest | |
uses: coverallsapp/github-action@master | |
env: | |
NODE_COVERALLS_DEBUG: 1 | |
with: | |
github-token: ${{ secrets.github_token }} | |
path-to-lcov: ./coverage/node/lcov.info | |
parallel: true | |
flag-name: strict | |
# - name: Test Node (Strict) | |
# run: yarn test-nyc-strict | |
# - name: Coveralls Node Strict | |
# uses: coverallsapp/github-action@master | |
# env: | |
# NODE_COVERALLS_DEBUG: 1 | |
# with: | |
# github-token: ${{ secrets.github_token }} | |
# path-to-lcov: ./coverage/nyc-strict.lcov | |
# parallel: true | |
# flag-name: strict | |
- name: Test Ticlo | |
run: yarn ticlo-test-nyc | |
- name: Coveralls Ticlo | |
uses: coverallsapp/github-action@master | |
env: | |
NODE_COVERALLS_DEBUG: 1 | |
with: | |
github-token: ${{ secrets.github_token }} | |
path-to-lcov: ./coverage/nyc-ticlo.lcov | |
parallel: true | |
flag-name: ticlo | |
finish-coverage: | |
needs: [test, test-browser] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
parallel-finished: true |