Skip to content

Commit

Permalink
chore: test old svelte version
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Jun 27, 2021
1 parent f81e49b commit f6431f2
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
version: 2.1

supported-svelte-versions: &supported-svelte-versions ["local", "3.29.4"]

workflows:
version: 2
build:
build_and_test:
jobs:
- build_and_test
- build_and_test:
matrix:
parameters:
svelte-version: *supported-svelte-versions
jobs:
build_and_test:
parameters:
svelte-version:
type: string
description: Overrides the Svelte version. `local` refers to the locally-installed version.
default: "local"
docker:
- image: circleci/node:14-buster-browsers
steps:
Expand All @@ -22,6 +31,14 @@ jobs:
- restore_cache:
name: Restore yarn cache
key: yarn-v1-{{ checksum "yarn.lock" }}
- when:
condition:
not:
equal: [ <<parameters.svelte-version>>, "local" ]
steps:
- run:
name: Override version of svelte@<<parameters.svelte-version>>
command: yarn add svelte@<<parameters.svelte-version>> --dev
- run:
name: Yarn install
command: yarn install --immutable
Expand Down

0 comments on commit f6431f2

Please sign in to comment.