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

TECH-1636: Create Github Actions config #261

Merged
merged 19 commits into from
Jul 3, 2024
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
102 changes: 0 additions & 102 deletions .circleci/config.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/on-code-change.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow is triggered every time a change is pushed to any branches
# Github actions command reference: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
name: On Code Change (PR)

# The workflow could also be triggered on PRs
on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
build:
name: Build Components
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
shell: bash
run: |
yarn install
- name: Execute yarn build
shell: bash
run: |
yarn build

test:
name: Test Components
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
shell: bash
run: |
yarn install
- name: Run linting
shell: bash
run: |
yarn lint
- name: Run tests
shell: bash
run: |
yarn test
60 changes: 60 additions & 0 deletions .github/workflows/on-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# This workflow is triggered every time a change is pushed to any branches
# Github actions command reference: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
name: On merge to master
rknj marked this conversation as resolved.
Show resolved Hide resolved

# The workflow could also be triggered on PRs
on:
push:
branches:
- 'master'
tags-ignore:
- '**'

jobs:
test:
name: Test Components
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
shell: bash
run: |
yarn install
- name: Run linting
shell: bash
run: |
yarn lint
- name: Run tests
shell: bash
run: |
yarn test

build:
name: Build Components
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
shell: bash
run: |
yarn install
- name: Execute yarn build
shell: bash
run: |
yarn build

publish:
name: Publish Components
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
shell: bash
run: |
yarn install
rknj marked this conversation as resolved.
Show resolved Hide resolved
- name: Execute yarn publish
shell: bash
run: |
yarn publish