Skip to content

Commit

Permalink
metanorma/ci#45 update autorelease flow
Browse files Browse the repository at this point in the history
  • Loading branch information
CAMOBAP committed Nov 7, 2020
1 parent 4adf214 commit aff67d0
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Auto-generated by Cimas: Do not edit it manually!
# See https://github.com/metanorma/cimas
# source: https://github.com/marketplace/actions/merge-pull-requests#usage
name: automerge

on: status

jobs:
automerge:
runs-on: ubuntu-latest
if: github.event.context == 'tests-passed-successfully'
steps:
- name: automerge
uses: "pascalgn/automerge-action@v0.12.0"
env:
GITHUB_TOKEN: "${{ secrets.METANORMA_CI_PAT_TOKEN || github.token }}"
57 changes: 57 additions & 0 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Auto-generated by Cimas: Do not edit it manually!
# See https://github.com/metanorma/cimas
name: make

on:
push:
branches: [ master, main ]
tags: [ v* ]
pull_request:

jobs:
make:
name: Test on PlantUML ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]

steps:
- uses: actions/checkout@master

- name: install plantuml ubuntu
if: matrix.os == 'ubuntu-latest'
uses: nick-invision/retry@v1
with:
polling_interval_seconds: 5
timeout_minutes: 5
max_attempts: 3
command: >
sudo apt-get update -y && sudo bash -c
"curl -L https://github.com/metanorma/plantuml-install/raw/master/ubuntu.sh | bash"
- if: matrix.os == 'macos-latest'
run: brew install plantuml

- if: matrix.os == 'windows-latest'
run: cinst -y plantuml

- if: matrix.os != 'windows-latest'
run: make clean all

- if: matrix.os == 'windows-latest'
run: make clean all SHELL=cmd

tests-passed:
needs: rake
runs-on: ubuntu-latest
steps:
- name: Trigger tests passed event
uses: Sibz/github-status-action@v1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: 'tests-passed-successfully'
description: 'Tests passed successfully'
state: 'success'
sha: ${{ github.event.pull_request.head.sha || github.sha }}

0 comments on commit aff67d0

Please sign in to comment.