Skip to content

Commit

Permalink
Merge pull request #836 from ral-facilities/rename-master
Browse files Browse the repository at this point in the history
Rename instances of "master" to "main"
  • Loading branch information
louise-davies authored Apr 19, 2022
2 parents 26e5726 + 1141827 commit 72c7e7a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: CI Build
on:
on:
workflow_dispatch:
pull_request:
# By default, the pull_request event type is not triggered when a PR is merged into master
# By default, the pull_request event type is not triggered when a PR is merged into main
push:
branches:
- master
- main

jobs:
lint-and-unit-test:
Expand Down Expand Up @@ -37,13 +37,13 @@ jobs:
npm config set scripts-prepend-node-path true
sudo apt-get install libgconf-2-4
yarn --frozen-lockfile
# Linting and unit testing
- name: Run linting
run: yarn lint
- name: Run unit tests
run: yarn test:unit

# Test coverage upload
- name: Upload unit test coverage for the Common package
if: success()
Expand Down Expand Up @@ -74,7 +74,6 @@ jobs:
flags: download
fail_ci_if_error: true


dataview-e2e-tests:
name: DataGateway DataView End to End Tests
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -169,7 +168,7 @@ jobs:
sed -i -e "s/\"log_level\": \"WARN\",/\"log_level\": \"DEBUG\",/" datagateway-api/datagateway_api/config.json.example
- name: Create config.json
run: cp datagateway-api/datagateway_api/config.json.example datagateway-api/datagateway_api/config.json

# DataGateway API dependencies
- name: Install Poetry
run: pip install poetry
Expand All @@ -181,7 +180,7 @@ jobs:
- name: Start API
run: cd datagateway-api; nohup poetry run python -m datagateway_api.src.main > api-output.txt &

# E2E tests
- name: Checkout repo
uses: actions/checkout@v2
Expand Down Expand Up @@ -216,7 +215,6 @@ jobs:
name: DataView-Screenshots
path: packages/datagateway-dataview/cypress/screenshots


download-e2e-tests:
name: DataGateway Download End to End Tests
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -327,7 +325,7 @@ jobs:
sed -i -e "s/\"log_level\": \"WARN\",/\"log_level\": \"DEBUG\",/" datagateway-api/datagateway_api/config.json.example
- name: Create config.json
run: cp datagateway-api/datagateway_api/config.json.example datagateway-api/datagateway_api/config.json

# DataGateway API dependencies
- name: Install Poetry
run: pip install poetry
Expand All @@ -339,7 +337,7 @@ jobs:
- name: Start API
run: cd datagateway-api; nohup poetry run python -m datagateway_api.src.main > api-output.txt &

# E2E tests
- name: Checkout repo
uses: actions/checkout@v2
Expand Down Expand Up @@ -374,7 +372,6 @@ jobs:
name: Download-Screenshots
path: packages/datagateway-download/cypress/screenshots


search-e2e-tests:
name: DataGateway Search End to End Tests
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -467,7 +464,7 @@ jobs:
sed -i -e "s/\"log_level\": \"WARN\",/\"log_level\": \"DEBUG\",/" datagateway-api/datagateway_api/config.json.example
- name: Create config.json
run: cp datagateway-api/datagateway_api/config.json.example datagateway-api/datagateway_api/config.json

# DataGateway API dependencies
- name: Install Poetry
run: pip install poetry
Expand All @@ -476,7 +473,7 @@ jobs:
- name: Add dummy data to icatdb
run: |
cd datagateway-api; poetry run python -m util.icat_db_generator
# Recreate Lucene indexes
- name: Login to ICAT
run: |
Expand All @@ -497,7 +494,7 @@ jobs:

- name: Start API
run: cd datagateway-api; nohup poetry run python -m datagateway_api.src.main > api-output.txt &

# E2E tests
- name: Checkout repo
uses: actions/checkout@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release Build
on:
push:
branches: master
branches: main
tags: '*'

jobs:
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Determine tag name
run: |
if [ "${{ github.ref }}" = "refs/heads/master" ]
if [ "${{ github.ref }}" = "refs/heads/main" ]
then
echo TAG_NAME=snapshot >> $GITHUB_ENV
else
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
tag_name: ${{ env.TAG_NAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.ref == 'refs/heads/master' }}
if: ${{ github.ref == 'refs/heads/main' }}

- name: Create/update release
uses: johnwbyrd/[email protected]
Expand All @@ -87,5 +87,5 @@ jobs:
files: ./datagateway-dataview-${{ env.TAG_NAME }}.tar.gz ./datagateway-download-${{ env.TAG_NAME }}.tar.gz ./datagateway-search-${{ env.TAG_NAME }}.tar.gz
release: Release ${{ env.TAG_NAME }}
tag: ${{ env.TAG_NAME }}
prerelease: ${{ github.ref == 'refs/heads/master' }}
prerelease: ${{ github.ref == 'refs/heads/main' }}
draft: false
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DataGateway

[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Build Status](https://github.com/ral-facilities/datagateway/workflows/CI%20Build/badge.svg?branch=master)](https://github.com/ral-facilities/datagateway/actions?query=workflow%3A%22CI+Build%22) [![codecov](https://codecov.io/gh/ral-facilities/datagateway/branch/master/graph/badge.svg)](https://codecov.io/gh/ral-facilities/datagateway)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Build Status](https://github.com/ral-facilities/datagateway/workflows/CI%20Build/badge.svg?branch=main)](https://github.com/ral-facilities/datagateway/actions?query=workflow%3A%22CI+Build%22) [![codecov](https://codecov.io/gh/ral-facilities/datagateway/branch/main/graph/badge.svg)](https://codecov.io/gh/ral-facilities/datagateway)

DataGateway is a [ReactJs](https://reactjs.org/)-based web application that provides ways of discovering and accessing data produced at large-scale science facilities. DataGateway is
a [micro-frontend](https://micro-frontends.org/) that can be integrated with the parent web application [SciGateway](https://github.com/ral-facilities/scigateway).
Expand Down Expand Up @@ -79,4 +79,3 @@ Lints all packages
### `yarn tsc`

Runs `tsc` on all packages - currently this will re-build `datagateway-common`

0 comments on commit 72c7e7a

Please sign in to comment.