Skip to content

Merge pull request #513 from France-ioi/add-text-length #2477

Merge pull request #513 from France-ioi/add-text-length

Merge pull request #513 from France-ioi/add-text-length #2477

Workflow file for this run

name: Development checks
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.x
registry-url: "https://npm.pkg.github.com"
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_PAT }}
- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: v1-npm-deps-${{ hashFiles('yarn.lock') }}
restore-keys: v1-npm-deps-
- name: Fetch git submodules
run: git submodule update --init
- name: Install dependencies
run: yarn install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_PAT }}
- name: Copy default config file
run: cp config.json.template config.json
- name: Build app
run: webpack --mode=production
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.x
registry-url: "https://npm.pkg.github.com"
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_PAT }}
- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: v1-npm-deps-${{ hashFiles('yarn.lock') }}
restore-keys: v1-npm-deps-
- name: Install dependencies
run: yarn install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_PAT }}
- name: Run linter
run: yarn lint