This repository has been archived by the owner on Oct 26, 2023. It is now read-only.
Bump @babel/traverse from 7.14.5 to 7.23.2 #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node Build & CI | |
on: [push] | |
jobs: | |
quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@master | |
with: | |
node-version: "12" | |
- name: Cache node modules | |
uses: actions/cache@v1 | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.OS }}-build-${{ env.cache-name }}- | |
${{ runner.OS }}-build- | |
${{ runner.OS }}- | |
- name: npm install, and lint | |
run: | | |
npm ci | |
npm run test:lint --if-present | |
env: | |
CI: "true" | |
- name: unit test | |
run: | | |
npm ci | |
npm run test:coverage --if-present | |
env: | |
CI: "true" | |
# - name: SonarCloud Scan | |
# uses: sonarsource/sonarcloud-github-action@master | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
# - name: Test & publish code coverage | |
# uses: paambaati/codeclimate-action@v2.3.0 | |
# env: | |
# CC_TEST_REPORTER_ID: ${{ secrets.TestReporterID }} | |
# CI: "true" | |
# with: | |
# coverageCommand: npm run test:coverage | |
# debug: "true" | |
build: | |
runs-on: ubuntu-latest | |
needs: [quality] | |
strategy: | |
matrix: | |
node-version: [12.x] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache node modules | |
uses: actions/cache@v1 | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.OS }}-build-${{ env.cache-name }}- | |
${{ runner.OS }}-build- | |
${{ runner.OS }}- | |
- name: npm install, build, and test | |
run: | | |
npm ci | |
npm run build --if-present | |
env: | |
CI: "true" | |
s2i-build: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- name: Image Build | |
env: | |
NAMESPACE: 85d4e0-tools | |
BUILD_NAME: repomountie-master-build | |
IMAGE_NAME: repomountie | |
uses: redhat-developer/openshift-actions@v1.1 | |
with: | |
version: "latest" | |
openshift_server_url: ${{ secrets.OpenShiftServerURL}} | |
parameters: '{"apitoken": "${{ secrets.OpenShiftToken }}", "acceptUntrustedCerts": "true"}' | |
cmd: | | |
'version' | |
'start-build ${BUILD_NAME} -n ${NAMESPACE} --follow' |