Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/reposense/RepoSense into …
Browse files Browse the repository at this point in the history
…release
  • Loading branch information
HCY123902 committed Dec 16, 2022
2 parents 33c800b + f80e944 commit 9abd738
Show file tree
Hide file tree
Showing 286 changed files with 6,176 additions and 2,784 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/delete-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Delete deployments
run: ./config/gh-actions/delete-deploy.sh
8 changes: 4 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '12.x'
node-version: '14.x'

- name: Set up Node caching
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down
141 changes: 101 additions & 40 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,33 @@ jobs:
name: ${{ matrix.os }} JDK 8
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
os: [ubuntu-20.04, ubuntu-22.04]
runs-on: ${{ matrix.os }}
env:
NODE_VERSION: "lts/*"

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'zulu'
java-version: 8

- name: Verify Java version
run: echo -e "Actual JDK in use -- "; java -version

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '12.x'
node-version: '14.x'

- name: Set up Gradle caching
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand All @@ -50,7 +51,7 @@ jobs:
${{ matrix.os }}-gradle-
- name: Set up Node caching
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ matrix.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -67,11 +68,15 @@ jobs:
run: ./gradlew lintFrontend

- name: Build with Gradle
run: time ./gradlew clean checkstyleMain checkstyleTest test systemTest coverage
run: ./gradlew clean checkstyleAll test systemTest coverage

- name: Run code coverage
if: ${{ success() && matrix.os == 'ubuntu-20.04' }}
run: bash <(curl -s https://codecov.io/bash)
uses: codecov/codecov-action@v3
with:
directory: ${{ github.workspace }}/build/reports/jacoco/coverage
files: coverage.xml
fail_ci_if_error: true

- name: Build preview website (pull request)
if: ${{ success() && github.event_name == 'pull_request' && matrix.os == 'ubuntu-20.04' }}
Expand All @@ -89,7 +94,7 @@ jobs:
- name: Upload artifacts (pull request)
if: ${{ success() && github.event_name == 'pull_request' && matrix.os == 'ubuntu-20.04' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: reposense-deployment
path: |
Expand All @@ -101,32 +106,33 @@ jobs:
name: ${{ matrix.os }} JDK 8
strategy:
matrix:
os: [macos-10.15, macos-11]
os: [macos-11, macos-12]
runs-on: ${{ matrix.os }}
env:
HOMEBREW_NO_AUTO_UPDATE: 1 # Prevent time-consuming brew update

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'zulu'
java-version: 8

- name: Verify Java version
run: echo -e "Actual JDK in use -- "; java -version

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '12.x'
node-version: '14.x'

- name: Set up Gradle caching
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand All @@ -136,7 +142,7 @@ jobs:
${{ matrix.os }}-gradle-
- name: Set up Node caching
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ matrix.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -153,33 +159,100 @@ jobs:
run: ./gradlew lintFrontend

- name: Build with Gradle
run: time ./gradlew clean checkstyleMain checkstyleTest test systemTest coverage
run: ./gradlew clean checkstyleAll test systemTest coverage

- name: Run code coverage
if: ${{ success() && matrix.os == 'macos-11' }}
uses: codecov/codecov-action@v3
with:
directory: ${{ github.workspace }}/build/reports/jacoco/coverage
files: coverage.xml
fail_ci_if_error: true

windows:
name: ${{ matrix.os }} JDK 8
strategy:
matrix:
os: [windows-2019, windows-2022]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 8

- name: Verify Java version
run: Write-Output "Actual JDK in use -- "; java -version

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14.x'

- name: Set up Gradle caching
uses: actions/cache@v3
with:
path: |
$HOME/.gradle/caches
$HOME/.gradle/wrapper
key: ${{ matrix.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ matrix.os }}-gradle-
- name: Set up Node caching
uses: actions/cache@v3
with:
path: $HOME/.npm
key: ${{ matrix.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ matrix.os }}-node-
- name: Run linter
run: ./gradlew lintFrontend

- name: Build with Gradle
run: ./gradlew clean checkstyleAll test systemTest coverage

- name: Run code coverage
if: ${{ success() && matrix.os == 'windows-2022' }}
uses: codecov/codecov-action@v3
with:
directory: ${{ github.workspace }}/build/reports/jacoco/coverage
files: coverage.xml
fail_ci_if_error: true

cypress:
name: Cypress frontend tests
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'zulu'
java-version: 8

- name: Verify Java version
run: echo -e "Actual JDK in use -- "; java -version

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '12.x'
node-version: '14.x'

- name: Set up Gradle caching
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand All @@ -189,7 +262,7 @@ jobs:
${{ runner.os }}-gradle-
- name: Set up Node caching
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -199,18 +272,6 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Install packages
run: npm install

- name: Set up Cypress
uses: cypress-io/github-action@v2
with:
build: npm i -D cypress
working-directory: ./frontend/cypress
browser: chrome
headless: true
runTests: false # Just perform installation

- name: Set up environment
run: sudo apt-get install -y libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pending.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Update PR checklist for surge.sh as pending
run: |
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: reposense-deployment-id
path: ./pr
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ on:

jobs:
stale:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest

steps:
- uses: actions/stale@v3
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
days-before-close: 7
days-before-stale: -1
days-before-close: -1
days-before-pr-stale: 30
days-before-pr-close: 7
exempt-pr-labels: 's.DoNotMerge'
remove-stale-when-updated: true
stale-pr-label: 'Stale'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/surge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '12.x'
node-version: '14.x'

- name: Download deployment artifacts
uses: dawidd6/action-download-artifact@v2
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# RepoSense

[![Build Status](https://github.com/reposense/RepoSense/actions/workflows/integration.yml/badge.svg)](https://github.com/reposense/RepoSense/actions/workflows/integration.yml)
[![Build status](https://ci.appveyor.com/api/projects/status/gsbkj5qby3pjd6nw/branch/master?svg=true)](https://ci.appveyor.com/project/eugenepeh/reposense/branch/master)
[![codecov.io](https://codecov.io/gh/reposense/RepoSense/branch/master/graphs/badge.svg?branch=master)](http://codecov.io/github/reposense/RepoSense?branch=master)
[![Netlify Status](https://api.netlify.com/api/v1/badges/260983b3-589e-4619-a2e8-0bfb7a2b4422/deploy-status)](https://app.netlify.com/sites/reposense/deploys)

Expand Down
18 changes: 0 additions & 18 deletions appveyor.yml

This file was deleted.

Loading

0 comments on commit 9abd738

Please sign in to comment.