Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github actions: add build + lint check workflow for coral_web #81

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/actions/js-install/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: js-install
description: Set up Node.js and pnpm, install dependencies

runs:
using: composite
steps:
- uses: pnpm/action-setup@v2.1.0
with:
version: "9.0.6"

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: "js/.nvmrc"
misspia-cohere marked this conversation as resolved.
Show resolved Hide resolved
cache: "pnpm"
cache-dependency-path: "js/pnpm-lock.yaml"
misspia-cohere marked this conversation as resolved.
Show resolved Hide resolved

- name: Install dependencies with pnpm
shell: bash
working-directory: js
misspia-cohere marked this conversation as resolved.
Show resolved Hide resolved
run: pnpm install --frozen-lockfile
27 changes: 27 additions & 0 deletions .github/workflows/interface_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Interface Tests

on:
push:
branches: [main]
paths:
- src/interfaces/coral_web/**
misspia-cohere marked this conversation as resolved.
Show resolved Hide resolved
pull_request: {}

jobs:
interface_tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/interfaces/coral_web

steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 2
misspia-cohere marked this conversation as resolved.
Show resolved Hide resolved
- name: Set up Node.js and install dependencies
uses: ./.github/actions/js-install
- name: Check coral_web is formatted
run: pnpm format
misspia-cohere marked this conversation as resolved.
Show resolved Hide resolved
- name: Check coral_web can build
run: pnpm build