Skip to content

feat: NO-ISSUE improve indentation #8

feat: NO-ISSUE improve indentation

feat: NO-ISSUE improve indentation #8

Workflow file for this run

name: CI
env:
EXTRA_NIX_CONFIG: |
substituters = https://cache.nixos.org/ https://nix-community.cachix.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
on:
pull_request:
branches:
- "trunk"
merge_group:
branches:
- "trunk"
permissions: {}
jobs:
emacs-versions:
runs-on: ubuntu-latest
outputs:
EMACS_VERSIONS: ${{ steps.set-emacs-versions.outputs.EMACS_VERSIONS }}
permissions:
contents: read
steps:
- uses: actions/checkout@v3.6.0
- uses: cachix/install-nix-action@v22
with:
github_access_token: '${{ secrets.GITHUB_TOKEN }}'
extra_nix_config: "${{ env.EXTRA_NIX_CONFIG }}"
- id: set-emacs-versions
run: |
EMACS_VERSIONS=$(nix eval --json .#supportedEmacsVersions)
echo "EMACS_VERSIONS=$EMACS_VERSIONS" >> "$GITHUB_OUTPUT"
file-changes:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
outputs:
package-sources: ${{ steps.changes.outputs.package-sources }}
test-sources: ${{ steps.changes.outputs.test-sources }}
nix-sources: ${{ steps.changes.outputs.nix-sources }}
steps:
- uses: actions/checkout@v3.6.0
- uses: dorny/paths-filter@v2
id: changes
with:
base: ${{ github.event.pull_request.base.ref || github.event.merge_group.base_ref }}
ref: ${{ github.event.pull_request.head.ref || github.event.merge_group.head_ref }}
filters: .github/file-filters.yaml
lint-package:
uses: ./.github/workflows/lint-package.yaml
permissions:
contents: read
needs: [emacs-versions, file-changes]
if: needs.file-changes.outputs.package-sources == 'true'
secrets: inherit
with:
emacs-versions: ${{ needs.emacs-versions.outputs.EMACS_VERSIONS }}
test-package:
uses: ./.github/workflows/test.yaml
permissions:
contents: read
needs: [emacs-versions, file-changes]
secrets: inherit
with:
emacs-versions: ${{ needs.emacs-versions.outputs.EMACS_VERSIONS }}
lint-nix:
uses: ./.github/workflows/lint-nix.yaml
if: needs.file-changes.outputs.nix-sources == 'true'
permissions:
contents: read
needs: file-changes
secrets: inherit