-
Notifications
You must be signed in to change notification settings - Fork 12
29 lines (28 loc) · 824 Bytes
/
ci.yml
File metadata and controls
29 lines (28 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: ci.yml
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
spec:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3
bundler-cache: true
- name: application authentication
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PUPPET_CD4PE_TOKEN_APP_ID }}
private-key: ${{ secrets.PUPPET_CD4PE_TOKEN }}
repositories: puppet-enterprise-modules,puppetlabs-pe_r10k,enterprise_tasks
- name: Run tests
run: |
export ACCESS_TOKEN=${{ steps.app-token.outputs.token }}
FIXTURES_YML=.fixtures.ci.yml bundle exec rake spec