diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..cbb0c3b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: [8, 10, 12, 14, 16, 18] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: yarn + - run: yarn install + - run: yarn test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b6b1905..0000000 --- a/.travis.yml +++ /dev/null @@ -1,33 +0,0 @@ -sudo: false - -git: - depth: 10 - -branches: - only: - - master - -language: node_js - -# cache node modules -cache: - directories: - - $HOME/.npm - - node_modules - -matrix: - fast_finish: true - include: - - node_js: '12' - script: npm run pretest - - node_js: '12' - script: npm run test - - node_js: '10' - script: npm run test - - node_js: '8' - script: npm run test - -before_install: - - npm install -g npm@latest - - node --version - - npm --version diff --git a/README.md b/README.md index 72aa91d..80ad16e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # postcss-value-parser -[![Travis CI](https://travis-ci.org/TrySound/postcss-value-parser.svg)](https://travis-ci.org/TrySound/postcss-value-parser) - Transforms CSS declaration values and at-rule parameters into a tree of nodes, and provides a simple traversal API. ## Usage