Skip to content

Commit

Permalink
Merge pull request #30 from nyuoss/sash7410_github_actions_ci
Browse files Browse the repository at this point in the history
Update project to use GitHub Actions for CI Processes
  • Loading branch information
Hao-191 authored May 12, 2024
2 parents ffe4981 + ba34b1f commit 3442fb2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 51 deletions.
49 changes: 0 additions & 49 deletions .circleci/config.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Java CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin' # AdoptOpenJDK has been moved to Eclipse Temurin

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Run tests
run: mvn test # Executes the test phase

- name: Run application
run: java -jar ./target/demo-1.0-SNAPSHOT.jar ./project-gitignore/.gitignore ./project-gitignore ./project-gitignore true

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ The Gitignore Verifier project employs a robust testing strategy to ensure the a
- Focus: Integration tests are designed to test the interactions between components such as file system traversal, rule application, and report generation. These tests involve reading from actual .gitignore files and processing a directory structure to validate the entire workflow of the application.
- Execution: Integration tests are executed alongside unit tests but can be distinguished by their annotations and setup requirements.

## Circle CI Build Status
## GitHub Actions Build Status

[![CircleCI](https://dl.circleci.com/status-badge/img/circleci/KYnFbY2qNNDLwRPNicQYzN/JCe2pdy1WyY4eU5bckY53j/tree/main.svg?style=svg&circle-token=2c19527cd3f0e1b351c32ad7862299196d120a5d)](https://dl.circleci.com/status-badge/redirect/circleci/KYnFbY2qNNDLwRPNicQYzN/JCe2pdy1WyY4eU5bckY53j/tree/main)
[![Actions Status](https://github.com/nyuoss/project-gitignore/workflows/Java%20CI/badge.svg)](https://github.com/nyuoss/project-gitignore/actions)


## Component Specification:
Expand Down

0 comments on commit 3442fb2

Please sign in to comment.