separate deps, create setup-job
shared action
#1
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
branches: | |
- '**' | |
push: | |
branches: | |
- 'main' | |
concurrency: | |
group: ci-${{ github.sha }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
eslint: | |
name: Lint - ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Job | |
id: setup-job | |
uses: .github/actions/setup-job.yml | |
- name: Lint | |
id: lint | |
run: | | |
npm run lint:eslint | |
editorconfig: | |
name: Lint - EditorConfig | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Job | |
id: setup-job | |
uses: .github/actions/setup-job.yml | |
- name: Lint | |
id: lint | |
run: npm run lint:ec | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Job | |
id: setup-job | |
uses: .github/actions/setup-job.yml | |
- name: Tests | |
id: tests | |
run: npm run test:ci |