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

build: Update build system to use ci.yml [PT-186628316] #342

Merged
merged 1 commit into from
Dec 7, 2023
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
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Continuous Integration

on: push

jobs:
jest:
name: Build and Run Jest Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Dependencies
run: npm ci
- name: Build Project
run: npm run build
- name: Run Jest Tests w/ Coverage
run: npm run test:coverage -- --runInBand
s3-deploy:
name: S3 Deploy
needs:
- jest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Depndencies
run: npm ci
- uses: concord-consortium/s3-deploy-action@v1
with:
bucket: models-resources
prefix: ${{ github.event.repository.name }} # cloud-file-manager
awsAccessKeyId: ${{ secrets.AWS_ACCESS_KEY_ID }}
awsSecretAccessKey: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# Parameters to GHActions have to be strings, so a regular yaml array cannot
# be used. Instead the `|` turns the following lines into a string
topBranches: |
["${{ github.event.repository.default_branch }}"]
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

18 changes: 11 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ More info:

## Deployment

This repository will automatically deploy to S3 using Travis build hooks.
See `s3_deploy.sh` and `s3_website.yml`
Deployments are based on the contents of the /dist folder and are built automatically by GitHub Actions for each branch and tag pushed to GitHub.

By default this deploys to models-resources/cloud-file-manager/branch/<branch-name>/
You can preview thse deployments from a web browser at:
https://cloud-file-manager.concord.org/branch/<branch-name>/
Branches are deployed to `https://cloud-file-manager.concord.org/branch/<name>/`.

As of 2020-04-22 pushing the `production` branch will update the production
version of the CFM app.
Tags are deployed to `https://cloud-file-manager.concord.org/version/<name>/`

You can view the status of all the branch and tag deploys [here](https://github.com/concord-consortium/cloud-file-manager/actions).

The production release is available at `https://cloud-file-manager.concord.org`.

Production releases are done using a manual GitHub Actions workflow. You specify which tag you want to release to production and the workflow copies that tag's `index-top.html` to `https://cloud-file-manager.concord.org/index.html`.

See the CLUE [docs/deploy.md](https://github.com/concord-consortium/collaborative-learning/blob/master/docs/deploy.md) for more details (it uses the same process).

## Integrating Cloud File Manager

Expand Down
59 changes: 0 additions & 59 deletions s3_deploy.sh

This file was deleted.

31 changes: 0 additions & 31 deletions s3_website.yml

This file was deleted.

Loading