"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file ".github/workflows/ci.yml" between
less.js-4.1.2.tar.gz and less.js-4.1.3.tar.gz

About: Less.js (Leaner CSS) is a CSS preprocessor (extension language) adding features that allow variables, mixins, functions and many other techniques that allow you to make CSS that is more maintainable, themable and extendable.

ci.yml  (less.js-4.1.2):ci.yml  (less.js-4.1.3)
# Github actions workflow name # Github actions workflow name
name: Nodejs Test name: Nodejs Test
# Triggers the workflow on push or pull request events # Triggers the workflow on push or pull request events
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
test: platform_spec_test:
name: 'Tests on ${{matrix.os}} with node${{matrix.node}}' name: 'Tests on ${{matrix.os}} with node${{matrix.node}}'
strategy: strategy:
matrix: matrix:
# Test all mainstream operating system # Test all mainstream operating system
os: [ubuntu-latest, macos-latest, windows-latest] os: [ubuntu-latest, macos-latest, windows-latest]
# Latest four Nodejs LTS version node: [16]
node: [10, 12, 14, 16]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
# Pull repo to test machine # Pull repo to test machine
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# Configures the node version used on GitHub-hosted runners # Configures the node version used on GitHub-hosted runners
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
# The Node.js version to configure # The Node.js version to configure
node-version: ${{ matrix.node }} node-version: ${{ matrix.node }}
# Caching dependencies to speed up workflows # Caching dependencies to speed up workflows
- name: Get npm cache directory - name: Get npm cache directory
id: npm-cache-dir id: npm-cache-dir
run: | run: |
echo "::set-output name=dir::$(npm config get cache)" echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2 - uses: actions/cache@v2
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache .outputs.cache-hit != 'true' id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache .outputs.cache-hit != 'true'
with: with:
path: ${{ steps.npm-cache-dir.outputs.dir }} path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: | restore-keys: |
${{ runner.os }}-node- ${{ runner.os }}-node-
- name: Install npm dependencies - name: Install npm dependencies
run: npm install run: npm install
- name: Print put node & npm version - name: Print put node & npm version
# Output useful info for debugging. # Output useful info for debugging.
run: node --version && npm --version run: node --version && npm --version
- name: Run unit test
run: cd packages/less && npm test
fast_node_test:
name: 'Tests on ${{matrix.os}} with node${{matrix.node}}'
strategy:
matrix:
os: [ubuntu-latest]
node: [10, 12, 14, 18]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install npm dependencies
run: npm install
- name: Print put node & npm version
run: node --version && npm --version
- name: Run unit test - name: Run unit test
run: cd packages/less && npm test run: cd packages/less && npm test
 End of changes. 7 change blocks. 
6 lines changed or deleted 20 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)