Import example learning agents #9
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
################################################################################ | |
# | |
# Copyright (C) 2023-2024 retro.ai | |
# This file is part of retro3 - https://github.com/retroai/retro3 | |
# | |
# SPDX-License-Identifier: AGPL-3.0-or-later | |
# See the file LICENSE.txt for more information. | |
# | |
################################################################################ | |
name: Node.js CI | |
on: [push, pull_request] | |
jobs: | |
build-and-deploy: | |
# The type of runner that the job will run on | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
# Set the working directory to frontend folder | |
working-directory: src/frontend | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
node-version: 20 | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install pnpm | |
run: | | |
npm install -g pnpm | |
- name: Cache pnpm modules | |
id: cache-modules | |
uses: actions/cache@v4 | |
with: | |
path: | | |
src/frontend/node_modules | |
key: ${{ runner.os }}-${{ matrix.node-version }}-pnpm-${{ hashFiles('src/frontend/pnpm-lock.yaml') }} | |
- name: pnpm install | |
if: steps.cache-modules.outputs.cache-hit != 'true' | |
run: | | |
pnpm install | |
- name: pnpm audit-ci | |
run: | | |
pnpm audit-ci | |
- name: pnpm lint | |
run: | | |
pnpm lint | |
- name: pnpm build | |
run: | | |
pnpm build |