Skip to content

Commit

Permalink
Merge pull request #650 from SynBioHub/cjmyers-patch-2
Browse files Browse the repository at this point in the history
Update test-frontend.yml
  • Loading branch information
danielfang97 authored May 6, 2024
2 parents 60c54f8 + 99f4504 commit 5a57607
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions .github/workflows/test-frontend.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# This is a basic workflow to help you get started with Actions

name: Tests
name: Test Frontend

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
pull_request:
branches: [main]
paths:
- 'frontend/**'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -17,24 +15,12 @@ on:
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
name: Build docker image
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend

strategy:
matrix:
node-version: [14.x, 16.x]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm run build
- run: npm run test
- uses: actions/checkout@v2
name: Checkout source code
- name: Build the Docker image for the frontend
run: |
docker build --build-arg TEST_VAR=production ./frontend --tag synbiohub/sbh3frontend:snapshot

0 comments on commit 5a57607

Please sign in to comment.