Merge pull request #2408 from bgilbert/workflow
workflows: bump lint toolchain; restrict repository access
This commit is contained in:
commit
a3ce5df22e
|
|
@ -1,19 +1,21 @@
|
||||||
---
|
---
|
||||||
name: Docs
|
name: Docs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
# This workflow pushes to the gh-pages branch, so the token needs write
|
||||||
|
# privileges for repo contents.
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docs:
|
docs:
|
||||||
name: Build documentation
|
name: Build documentation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
# This job pushes to the gh-pages branch, so the token needs write
|
|
||||||
# privileges for repo contents.
|
|
||||||
contents: write
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,9 @@ on:
|
||||||
paths:
|
paths:
|
||||||
- 'configure.ac'
|
- 'configure.ac'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci-release-build:
|
ci-release-build:
|
||||||
name: "Sanity check release commits"
|
name: "Sanity check release commits"
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,18 @@
|
||||||
---
|
---
|
||||||
name: Rust
|
name: Rust
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
ACTIONS_LINTS_TOOLCHAIN: 1.50.0
|
ACTIONS_LINTS_TOOLCHAIN: 1.53.0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linting:
|
linting:
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,15 @@
|
||||||
---
|
---
|
||||||
name: Tests
|
name: Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
# Distro configuration matrix
|
# Distro configuration matrix
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue