ci: edit ci steps wd-144 #82
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: Continuous Integration | ||
env: | ||
JAVA_VERSION: 8 | ||
on: | ||
pull_request: | ||
branches: | ||
- development | ||
- production | ||
concurrency: | ||
group: ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
# ci: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Code Checkout | ||
# uses: actions/checkout@v4 | ||
# - name: Install NodeJS | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version-file: .nvmrc | ||
# - name: Install Java v${{ env.JAVA_VERSION }} | ||
# uses: actions/setup-java@v1 | ||
# with: | ||
# java-version: ${{ env.JAVA_VERSION }} | ||
# architecture: x64 | ||
# - name: Install Dependencies | ||
# run: | | ||
# npm install | ||
# - name: Code Building | ||
# run: | | ||
# make build | ||
# - name: Code Linting | ||
# run: | | ||
# make lint | ||
dependencies: | ||
name: Install Dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Code Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install NodeJS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
- name: Cache Dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: '**/node_modules' | ||
key: ci-${{ hashFiles('**/package-lock.json') }} | ||
- name: Install Dependencies | ||
run: | | ||
npm install | ||
lint: | ||
name: Code Linting | ||
needs: dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Code Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install NodeJS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
- name: Install Java v${{ env.JAVA_VERSION }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ env.JAVA_VERSION }} | ||
architecture: x64 | ||
- name: Restore Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: ci- | ||
- name: Code Building | ||
run: | | ||
make build | ||
- name: Code Linting | ||
run: | | ||
make lint |