Skip to content

Commit

Permalink
use procursus instead of brew for macos tests
Browse files Browse the repository at this point in the history
  • Loading branch information
itsnebulalol committed Jul 27, 2022
1 parent 57e64b0 commit 1914c37
Show file tree
Hide file tree
Showing 6 changed files with 216 additions and 169 deletions.
16 changes: 12 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
## Description
**Is your pull request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

## Is this related to an issue/problem?
**Description**
A clear and concise description of what you want to happen.

## Checklist
**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 about the pull request here.

**Checklist**

- [ ] The new code was tested.
- [ ] The code isn't overly messy.
- [ ] The code isn't overly messy.
42 changes: 21 additions & 21 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Push to Docker Hub

on:
workflow_dispatch:
workflow_dispatch:

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: itsnebulalol/permasigner:latest
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: itsnebulalol/permasigner:latest
16 changes: 8 additions & 8 deletions .github/workflows/first_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: First issue
on: [pull_request, issues]

jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Hi there! This seems like your first issue! We are very happy you are contributing to Permasigner :)"
pr-message: "Hi there! This seems like your first pull request! We are very happy you are contributing to Permasigner :)"
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Hi there! This seems like your first issue! We are very happy you are contributing to Permasigner :)"
pr-message: "Hi there! This seems like your first pull request! We are very happy you are contributing to Permasigner :)"
32 changes: 16 additions & 16 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: Lint script

on:
push:
paths-ignore:
- "README.md"
branches:
- "main"
push:
paths-ignore:
- 'README.md'
branches:
- "main"

jobs:
autopep8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
autopep8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: autopep8
uses: peter-evans/autopep8@v1
with:
args: --recursive --in-place .
- name: autopep8
uses: peter-evans/autopep8@v1
with:
args: --recursive --in-place .

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Lint script with autopep8
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Lint script with autopep8
58 changes: 29 additions & 29 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
name: Run script

on:
workflow_dispatch:
inputs:
ipa:
description: "Direct URL to IPA file"
required: true
workflow_dispatch:
inputs:
ipa:
description: "Direct URL to IPA file"
required: true

jobs:
run:
runs-on: ubuntu-latest
run:
runs-on: ubuntu-latest

steps:
# Checkout the latest code from the repo
- name: Checkout repo
uses: actions/checkout@v2
steps:
# Checkout the latest code from the repo
- name: Checkout repo
uses: actions/checkout@v2

# Setup which version of Python to use
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
# Setup which version of Python to use
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Run script
- name: Run script
run: python main.py -u ${{ github.event.inputs.ipa }} -n -d
# Run script
- name: Run script
run: python main.py -u ${{ github.event.inputs.ipa }} -n -d

# Upload test artifact
- uses: actions/upload-artifact@v3
with:
name: App.deb
path: output/*
# Upload test artifact
- uses: actions/upload-artifact@v3
with:
name: App.deb
path: output/*
Loading

0 comments on commit 1914c37

Please sign in to comment.