Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Update README and PostCSS #93

Update README and PostCSS

Update README and PostCSS #93

Workflow file for this run

name: perfectionist-dfd CI
on:
push:
branches:
- master
- main
- feature**
- staging**
pull_request:
types:
- assigned
- opened
- synchronize
- reopened
jobs:
build-and-test:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: ['16', '18']
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm install postcss
- run: npm run build --if-present
- run: npm run test:ci
- run: mkdir packdir && cp -r __tests__ src packdir && npm pack --pack-destination packdir
if: matrix.node-version == '16'
- name: Upload package as artifact
if: matrix.node-version == '16'
uses: actions/upload-artifact@v3
with:
if-no-files-found: error
name: perfectionist-dfd-${{ matrix.node-version }}
path: packdir
retention-days: 1
- name: Coveralls (Parallel)
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.node-version }}
parallel: true
finish-coveralls:
needs: build-and-test
runs-on: ubuntu-20.04
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
test-oldnode:
needs: build-and-test
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: ['12', '14']
steps:
- name: Get perfectionist-dfd Artifact
uses: actions/download-artifact@v3
with:
name: perfectionist-dfd-16
path: .
- name: Extract perfectionist-dfd package
run: tar --strip-components=1 -xf perfectionist-dfd-*.tgz
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm install postcss ava execa cross-env
# - name: Copy test to root dir
# run: cp -r perfectionist-dfd/packdir/__tests_ .
- name: Run tests using Old Node (${{ matrix.node-version }})
run: npm run test:oldci