Skip to content

Merging latest from internal repo #41

Merging latest from internal repo

Merging latest from internal repo #41

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: NPM Install
run: npm install
- name: Unit Tests
run: npm run test
- name: Lint Validation
run: npm run lint
- name: Prune Packages
run: npm prune --production
- name: Docker Build for Integration Test
run: docker build . -t salesforce/cix:local
- name: Reinstall dev modules for itest
run: npm install
- name: Integration Tests
run: npm run itest
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: salesforce/cix/cix
cache_froms: salesforce/cix:local
tag_with_ref: true
add_git_labels: true