mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
* introduce `public` folder This can contain all of the `public` functions we want to expose. This will be a bit nicer for example when you want to use internal/private functions (we use some in the vscode intellisense plugin). * use public `resolveConfig` function * expose resolveConfig in the root This will use the resolveConfig we expose from the `public` folder. We can probably generate these as well. * make `colors` public * make `default config` public * make `default theme` public * make `create plugin` public * update to public paths * remove `@tailwindcss/aspect-ratio` from tests This should be tested in its own repo instead. * remove `@tailwindcss/aspect-ratio` as a dependency * drop `Build` step from CI The build step is not a prerequisite anymore for running the tests. When we want to release a new (insiders) release, the `prepublishOnly` step will be executed for us. Before this change, it would have been executed twice: - Once before the tests - Once before the actual release * improve paths for caching purposes * add pretest scrip for generating the plugin list Now that we can use `SWC`, automatically generating the plugin list before running the tests is super fast and you don't even have to think about it anymore!
60 lines
1.7 KiB
YAML
60 lines
1.7 KiB
YAML
name: Integration Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
integration: [parcel, postcss-cli, rollup, tailwindcss-cli, vite, webpack-4, webpack-5]
|
|
node-version: [16]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Use cached node_modules (tailwindcss)
|
|
id: cache-tailwindcss
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: node_modules
|
|
key: nodeModules-${{ hashFiles('./package-lock.json') }}-${{ matrix.node-version }}-tailwindcss
|
|
restore-keys: |
|
|
nodeModules-
|
|
|
|
- name: Install dependencies
|
|
if: steps.cache-tailwindcss.outputs.cache-hit != 'true'
|
|
run: npm install
|
|
env:
|
|
CI: true
|
|
|
|
- name: Build Tailwind CSS
|
|
run: npm run prepublishOnly
|
|
|
|
- name: Use cached node_modules (integrations)
|
|
id: cache-integrations
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ./integrations/**/node_modules
|
|
key: nodeModules-${{ hashFiles('./integrations/**/package-lock.json') }}-${{ matrix.node-version }}-${{ matrix.integration }}-integrations
|
|
restore-keys: |
|
|
nodeModules-
|
|
|
|
- name: Install shared dependencies
|
|
if: steps.cache-integrations.outputs.cache-hit != 'true'
|
|
run: npm run install:integrations
|
|
env:
|
|
CI: true
|
|
|
|
- name: Test ${{ matrix.integration }}
|
|
run: npm test --prefix ./integrations/${{ matrix.integration }}
|