Add resources to YAML Syntax References / yaml-syntax.md #44
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
# 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: 16.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 |