Github Actions
https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-nodejs
https://github.com/actions/checkout
https://github.com/cdcent/csels-datahub/blob/actions-checkout/.github/workflows/test.yml
name: "Test Checkout Action"
on:
push:
branches:
- actions-checkout
jobs:
test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: cdcent/csels-datahub@actions-checkout
- uses: ./
with:
ref: master
cdcent/github-actions-checkout@main cdcent/csels-datahub@actions-checkout
# This is a basic workflow to help you get started with Actions
name: cdc-lint
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the integration branch
on:
push:
branches: [ integration ]
pull_request:
branches: [ integration ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
lint:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: cdcent/csels-datahub@actions-checkout
# Runs a single command using the runners shell
- name: Lint JS
run: npm run lint:js
# Runs a set of commands using the runners shell
- name: Lint CSS
run: npm run lint:css