Skip to content

Commit

Permalink
chore: Rename and standardize all GH workflows, and add an assistants…
Browse files Browse the repository at this point in the history
…_web check (#823)

* Rename and standardize all GH workflows, and add an assistants_web check

* Fix naming issue

* test with new actions

* fix frontend tests

* Fix destination
  • Loading branch information
tianjing-li authored Oct 30, 2024
1 parent 083b530 commit fd3fc84
Show file tree
Hide file tree
Showing 13 changed files with 56 additions and 11 deletions.
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
File renamed without changes.
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

0 comments on commit fd3fc84

Please sign in to comment.