diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml index d8635510..f3a299e8 100644 --- a/.github/workflows/integrate.yml +++ b/.github/workflows/integrate.yml @@ -4,13 +4,98 @@ name: Integrate on: push: - branches: [main] + branches: [tmp] env: FORCE_COLOR: 1 jobs: - _: - uses: medikoo/github-actions-workflows/.github/workflows/0.12-integrate.yml@main - secrets: - USER_GITHUB_TOKEN: ${{ secrets.USER_GITHUB_TOKEN }} + linuxNode6: + name: "[Linux] Node.js v6: Unit tests" + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Retrieve dependencies from cache + id: cacheNpm + uses: actions/cache@v2 + with: + path: | + ~/.npm + node_modules + key: npm-v6-${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }} + restore-keys: npm-v6-${{ runner.os }}-${{ github.ref }}- + + - name: Install Node.js and npm + uses: actions/setup-node@v1 + with: + node-version: 6.x + + - name: Install dependencies + if: steps.cacheNpm.outputs.cache-hit != 'true' + run: | + npm update --no-save + npm update --save-dev --no-save + - name: Unit tests + run: npm test + + linuxNode4: + name: "[Linux] Node.js v4: Unit tests" + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Retrieve dependencies from cache + id: cacheNpm + uses: actions/cache@v2 + with: + path: | + ~/.npm + node_modules + key: npm-v4-${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }} + restore-keys: npm-v4-${{ runner.os }}-${{ github.ref }}- + + - name: Install Node.js and npm + uses: actions/setup-node@v1 + with: + node-version: 4.x + + - name: Install dependencies + if: steps.cacheNpm.outputs.cache-hit != 'true' + run: | + npm update --no-save + npm update --save-dev --no-save + - name: Unit tests + run: npm test + + linuxNode012: + name: "[Linux] Node.js v0.12: Unit tests" + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Retrieve dependencies from cache + id: cacheNpm + uses: actions/cache@v2 + with: + path: | + ~/.npm + node_modules + key: npm-v0.12-${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }} + restore-keys: npm-v0.12-${{ runner.os }}-${{ github.ref }}- + + - name: Install Node.js and npm + uses: actions/setup-node@v1 + with: + node-version: "0.12" + + - name: Install dependencies + if: steps.cacheNpm.outputs.cache-hit != 'true' + run: | + npm update --no-save + npm update --save-dev --no-save + - name: Unit tests + run: npm test