Skip to content

Commit

Permalink
switch to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardwolff committed Dec 19, 2024
1 parent d532894 commit 2ca525f
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 96 deletions.
39 changes: 0 additions & 39 deletions .circleci/config.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build

on:
push:
# TODO: remove add_build_workflow after we've tested that this works
branches: [ master, add_build_workflow ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '10'

- name: Install dependencies
run: yarn

- name: Run Build
run: yarn run build
deploy:
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '10'

- name: Install dependencies
run: yarn

- name: Configure AWS Credentials using OIDC
uses: aws-actions/configure-aws-credentials@v4
with:
# TODO: update ACCOUNT and UPLOAD_ROLE and store in github secrets for the repo
role-to-assume: arn:aws:iam::<ACCOUNT>:role/<UPLOAD_ROLE>
role-session-name: github-action-account-link-extension-publish
aws-region: us-west-1

- name: Run Deploy
run: sh tools/cdn.sh
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on:
push:
branches-ignore: [ master ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '10'

- name: Install dependencies
run: yarn

- name: Run Tests
run: yarn run test
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.9
10
56 changes: 0 additions & 56 deletions Jenkinsfile

This file was deleted.

0 comments on commit 2ca525f

Please sign in to comment.