Skip to content

Merge pull request #43 from traPtitech/fix/docker_java_version #134

Merge pull request #43 from traPtitech/fix/docker_java_version

Merge pull request #43 from traPtitech/fix/docker_java_version #134

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
packages:
name: Client Packages
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install npm packages
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci
- name: Generate api
run: npm run gen-api
build:
name: Client Build
runs-on: ubuntu-latest
needs: [packages]
env:
CI: true
NODE_ENV: production
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-\
- name: Generate api
run: npm run gen-api
- name: build
run: npm run build
lint:
name: Client Lint
runs-on: ubuntu-latest
needs: [packages]
env:
CI: true
NODE_ENV: production
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Generate api
run: npm run gen-api
- run: npm run lint