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

chore: Rename and standardize all GH workflows, and add an assistants_web check #823

Merged
merged 5 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


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

runs:
using: composite
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: "src/interfaces/assistants_web/.nvmrc"
cache: "npm"
cache-dependency-path: "src/interfaces/assistants_web/package-lock.json"

- name: Install dependencies with npm
shell: bash
working-directory: src/interfaces/assistants_web
run: npm ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check for duplicate revision IDs
name: Alembic - No duplicate IDs

on:
pull_request:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Automated Migrations
name: Alembic - Automate migrations
# This workflow provides a way to run Alembic migrations using SSH or migration API or database URL.
on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backend_integration_tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Backend integration tests
name: Backend - Integration tests

on:
push:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python Lint
name: Backend - Lint

on:
push:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Typecheck newly added Python files
name: Backend - Typecheck new files

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backend_unit_tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Backend unit tests
name: Backend - Unit tests

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_push_backend.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create and publish backend image
name: Backend - Create and publish Docker image

on:
release:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_push_frontend.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create and publish frontend image
name: Frontend - Create and publish Docker image

on:
release:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/frontend_assistants_web_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Assistants Web - Format and build

on:
push:
branches: [main]
paths:
- src/interfaces/assistants_web/**
pull_request: {}
merge_group: {}

jobs:
interface_tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/interfaces/assistants_web
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Node.js and install dependencies
uses: ./.github/actions/assistants-web-install
- name: Check assistants_web is formatted
run: npm run format
- name: Check assistants_web can build
run: npm run build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Coral Web Tests
name: Coral Web - Format and build

on:
push:
Expand All @@ -20,7 +20,7 @@ jobs:
with:
fetch-depth: 2
- name: Set up Node.js and install dependencies
uses: ./.github/actions/js-install
uses: ./.github/actions/coral-web-install
- name: Check coral_web is formatted
run: npm run format
- name: Check coral_web can build
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Slack Bot Tests
name: Slack Bot - Format and build

on:
push:
Expand Down
Loading