mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
* calculate tag for the release This is based on the name we use in the version e.g.: `3.2.0-beta.2`. If no name can be found in the version, we will default to `latest` * ignore node_modules caching for now
73 lines
1.9 KiB
YAML
73 lines
1.9 KiB
YAML
name: Integration Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
integration:
|
|
- content-resolution
|
|
- parcel
|
|
- postcss-cli
|
|
- rollup
|
|
- rollup-sass
|
|
- tailwindcss-cli
|
|
- vite
|
|
- webpack-4
|
|
- webpack-5
|
|
node-version: [16]
|
|
|
|
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'
|
|
#
|
|
# - name: Use cached node_modules (tailwindcss)
|
|
# id: cache-tailwindcss
|
|
# uses: actions/cache@v3
|
|
# 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@v3
|
|
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 }}
|