Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostCSS 8 Updates #82

Draft
wants to merge 17 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 22 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,46 @@ version: 2.1
defaults: &defaults
working_directory: ~/postcss-themed
docker:
- image: circleci/node:10-browsers
- image: node:20
environment:
TZ: '/usr/share/zoneinfo/America/Los_Angeles'

aliases:
# Circle related commands
- &restore-cache
keys:
# Find a cache corresponding to this specific package.json checksum
# when this file is changed, this key will fail
- auto-{{ checksum "yarn.lock" }}-{{ checksum ".circleci/config.yml" }}
- auto-{{ checksum "yarn.lock" }}
# Find the most recent cache used from any branch
- auto-
- pnpm-packages-{{ checksum "pnpm-lock.yaml" }}
- &save-cache
key: auto-{{ checksum "yarn.lock" }}-{{ checksum ".circleci/config.yml" }}
key: pnpm-packages-{{ checksum "pnpm-lock.yaml" }}
paths:
- ~/.cache/yarn
- node_modules
# Yarn commands
- &yarn
- .pnpm-store
- &setup
name: Install pnpm package manager
command: |
corepack enable
corepack prepare pnpm@latest-9 --activate
pnpm config set store-dir .pnpm-store
- &pnpm
name: Install Dependencies
command: yarn install --frozen-lockfile --non-interactive --cache-folder=~/.cache/yarn
command: pnpm install
- &lint
name: Lint
command: yarn lint
command: pnpm lint
- &test
name: Test
command: yarn test
command: pnpm test
- &build
name: Build
command: yarn build
command: pnpm build

jobs:
install:
<<: *defaults
steps:
- checkout
- restore_cache: *restore-cache
- run: *yarn
- run: *setup
- run: *pnpm
- save_cache: *save-cache
- persist_to_workspace:
root: .
Expand All @@ -54,6 +54,7 @@ jobs:
steps:
- attach_workspace:
at: ~/postcss-themed
- run: *setup
- run: *build
- persist_to_workspace:
root: .
Expand All @@ -65,13 +66,15 @@ jobs:
steps:
- attach_workspace:
at: ~/postcss-themed
- run: *setup
- run: *lint

test:
<<: *defaults
steps:
- attach_workspace:
at: ~/postcss-themed
- run: *setup
- run: *test
- run:
name: Send CodeCov Results
Expand All @@ -83,9 +86,10 @@ jobs:
- attach_workspace:
at: ~/postcss-themed
- run: mkdir ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
- run: *setup
- run:
name: Release
command: yarn run release
command: pnpm run release

workflows:
version: 2
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ yarn-error.log
.vscode/
dist/
coverage/
.env
.env
.pnpm-store
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

Loading