Skip to content

Commit e430911

Browse files
authored
Merge pull request #97 from trocco-io/ci-migration
CI migration
2 parents 384778d + d24d4c1 commit e430911

File tree

3 files changed

+51
-89
lines changed

3 files changed

+51
-89
lines changed

.circleci/config.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/gem-push.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: main
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
tags:
8+
- '*'
9+
pull_request:
10+
branches:
11+
- 'main'
12+
types: [opened, synchronize]
13+
pull_request_target:
14+
branches:
15+
- 'main'
16+
types: [labeled]
17+
18+
jobs:
19+
test:
20+
name: test
21+
runs-on: ubuntu-latest
22+
if: >
23+
${{
24+
github.event_name == 'pull_request' ||
25+
github.event_name == 'workflow_dispatch' ||
26+
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe to test')) ||
27+
startsWith(github.ref, 'refs/tags/')
28+
}}
29+
steps:
30+
- uses: actions/checkout@v2
31+
- name: Set up JDK 1.8
32+
uses: actions/setup-java@v1
33+
with:
34+
java-version: 1.8
35+
- name: Test
36+
run: ./gradlew test
37+
build:
38+
name: Build + Publish
39+
runs-on: ubuntu-latest
40+
permissions:
41+
packages: write
42+
contents: read
43+
needs: [ test ]
44+
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.ref, 'refs/tags/') }}
45+
steps:
46+
- name: push gem
47+
uses: trocco-io/push-gem-to-gpr-action@v1
48+
with:
49+
language: java
50+
gem-path: "./build/gems/*.gem"
51+
github-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)