Skip to content

Merge pull request #283 from uw-it-aca/task/continuum-DT-menu-fix #364

Merge pull request #283 from uw-it-aca/task/continuum-DT-menu-fix

Merge pull request #283 from uw-it-aca/task/continuum-DT-menu-fix #364

Workflow file for this run

---
name: tests
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
types: [opened, reopened, synchronize]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install jshint
run: npm install -g jshint
- name: Run Tests
run: jshint includes/ --verbose
deploy:
if: github.event_name == 'push'
needs: build
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- id: 'auth'
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1
- name: Set GCS Bucket Name (Staging)
if: endsWith(github.ref, '/develop')
run: |
echo 'GCS_BUCKET_NAME=canvas-static-test' >> $GITHUB_ENV
- name: Set GCS Bucket Name (Production)
if: endsWith(github.ref, '/main')
run: |
echo 'GCS_BUCKET_NAME=canvas-static' >> $GITHUB_ENV
- name: Sync Files to GCS
uses: uw-it-aca/actions/sync-gcs@main
with:
source_dir: includes
bucket_name: ${GCS_BUCKET_NAME}