Skip to content

Commit

Permalink
Add GitHub workflow (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholashoule authored Oct 12, 2023
1 parent b742f72 commit 9e87408
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 3 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI - macOS

# Controls when the workflow will run
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12]

steps:
- name: Check out repo
uses: actions/checkout@v4

- name: Install dependencies
run: |
brew analytics on
brew update
brew install -sq coreutils
- name: Run (dotfiles - test)
shell: bash
run: |
pwd && ls -la
6 changes: 3 additions & 3 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Mark stale issues and pull requests

on:
schedule:
- cron: '44 12 * * *'
- cron: '19 8 * * *'

jobs:
stale:
Expand All @@ -18,9 +18,9 @@ jobs:
pull-requests: write

steps:
- uses: actions/stale@v5
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.REPO_STALE_TOKEN }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI - Ubuntu

# Controls when the workflow will run
on:
push:
branches: [main]
pull_request:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
name: Building on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]

steps:
- name: Check out repo
uses: actions/checkout@v4

- name: Run (dotfiles - test)
shell: bash
run: |
pwd && ls -la

0 comments on commit 9e87408

Please sign in to comment.