Skip to content

Commit

Permalink
CI update workflow to GH Actions (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirish committed May 30, 2023
1 parent 17c69bf commit 2da7c4a
Show file tree
Hide file tree
Showing 10 changed files with 81 additions and 84 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: 'BUG '
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: 'FEATURE '
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:

jobs:
ci:
name: CI
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
with:
phpcoverage: true
37 changes: 0 additions & 37 deletions .scrutinizer.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

Post open positions and receive online application submissions.

[![Build Status](https://travis-ci.org/dynamic/silverstripe-jobs.svg?branch=master)](https://travis-ci.org/dynamic/silverstripe-jobs)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/dynamic/silverstripe-jobs/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/dynamic/silverstripe-jobs/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/dynamic/silverstripe-jobs/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/dynamic/silverstripe-jobs/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/dynamic/silverstripe-jobs/badges/build.png?b=master)](https://scrutinizer-ci.com/g/dynamic/silverstripe-jobs/build-status/master)
[![CI](https://github.com/dynamic/silverstripe-jobs/actions/workflows/ci.yml/badge.svg)](https://github.com/dynamic/silverstripe-jobs/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/dynamic/silverstripe-jobs/branch/master/graph/badge.svg)](https://codecov.io/gh/dynamic/silverstripe-jobs)

[![Latest Stable Version](https://poser.pugx.org/dynamic/silverstripe-jobs/v/stable)](https://packagist.org/packages/dynamic/silverstripe-jobs)
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"type": "silverstripe-vendormodule",
"license": "BSD-3-Clause",
"require": {
"silverstripe/recipe-cms": "^1.0@dev || ^4.0@dev",
"silverstripe/vendor-plugin": "^1.0@dev",
"dynamic/silverstripe-collection": "^2.0@dev",
"silverstripe/lumberjack": "^2.0@dev",
"symbiote/silverstripe-gridfieldextensions": "^3@dev"
"silverstripe/recipe-cms": "^4",
"silverstripe/vendor-plugin": "^1",
"dynamic/silverstripe-collection": "^2",
"silverstripe/lumberjack": "^2",
"symbiote/silverstripe-gridfieldextensions": "^3"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"silverstripe/recipe-testing": "^2",
"squizlabs/php_codesniffer": "*"
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
<!-- Allow non camel cased method names -->
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
</rule>
</ruleset>
</ruleset>
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
</exclude>
</whitelist>
</filter>
</phpunit>
</phpunit>
2 changes: 1 addition & 1 deletion tests/Page/JobCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class JobCollectionTest extends SapphireTest
/**
* {@inheritdoc}
*/
public function tearDown()
public function tearDown(): void
{
DBDatetime::clear_mock_now();
parent::tearDown();
Expand Down

0 comments on commit 2da7c4a

Please sign in to comment.