Skip to content

Commit

Permalink
See #2
Browse files Browse the repository at this point in the history
  • Loading branch information
kz6fittycent committed Sep 19, 2024
1 parent a36459c commit efb3b10
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/periodic_builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Periodic Builds and Scans
on:
# Runs at 10:00 UTC everyday
schedule:
- cron: '30 10 * * *'

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2

- uses: snapcore/action-build@v1
id: build

- uses: anchore/scan-action@v3
id: scan
with:
severity-cutoff: critical
fail-build: false

- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.scan.outputs.sarif }}

- uses: diddlesnaps/snapcraft-review-action@v1
with:
snap: ${{ steps.build.outputs.snap }}
isClassic: 'false'
# Plugs and Slots declarations to override default denial (requires store assertion to publish)
# plugs: ./plug-declaration.json
# slots: ./slot-declaration.json
17 changes: 17 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: spell checking
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
typos:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4

- name: typos-action
uses: crate-ci/[email protected]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🧪 Test snap can be built on x86_64
name: 🧪 Snap Builds

on:
push:
Expand All @@ -18,6 +18,9 @@ jobs:

- uses: snapcore/action-build@v1
id: build

- uses: anchore/scan-action@v3
id: scan

- uses: diddlesnaps/snapcraft-review-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![bobrossquotes](https://snapcraft.io/bobrossquotes/badge.svg)](https://snapcraft.io/bobrossquotes)
[![bobrossquotes](https://snapcraft.io/bobrossquotes/badge.svg)](https://snapcraft.io/bobrossquotes)[![🧪 Snap Builds](https://github.com/kz6fittycent/bobrossquotes/workflows/%F0%9F%A7%AA%20Snap%20Builds/badge.svg)](https://github.com/kz6fittycent/bobrossquotes/actions?query=workflow:"🧪+Snap+Builds")[![Periodic Builds and Scans](https://github.com/kz6fittycent/bobrossquotes/actions/workflows/periodic_builds.yml/badge.svg)](https://github.com/kz6fittycent/bobrossquotes/actions/workflows/periodic_builds.yml)[![spell checking](https://github.com/kz6fittycent/BobRossQuotes/actions/workflows/spellcheck.yml/badge.svg?branch=master)](https://github.com/kz6fittycent/BobRossQuotes/actions/workflows/spellcheck.yml)

# BobRossQuotes

Expand Down
19 changes: 19 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@ license: MIT
base: core24
grade: stable
confinement: strict
source-code: https://github.com/kz6fittycent/BobRossQuotes
issues: https://github.com/kz6fittycent/BobRossQuotes/issues

platforms:
amd64:
build-on: [amd64]
build-for: [amd64]
arm64:
build-on: [arm64]
build-for: [arm64]
armhf:
build-on: [armhf]
build-for: [armhf]
ppc64el:
build-on: [ppc64el]
build-for: [ppc64el]
s390x:
build-on: [s390x]
build-for: [s390x]

apps:
bobrossquotes:
Expand Down

0 comments on commit efb3b10

Please sign in to comment.