File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ # Managed by modulesync - DO NOT EDIT
3+ # https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
4+
5+ name : Modulesync
6+
7+ on : pull_request
8+
9+ jobs :
10+ compare_with_repo :
11+ name : ' Setup Test Matrix'
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout Puppet module repository
15+ uses : actions/checkout@v2
16+ with :
17+ path : modules/${{ env.github_repository }}
18+
19+ - name : Setup ruby
20+ uses : ruby/setup-ruby@v1
21+ with :
22+ ruby-version : ' 3.0'
23+
24+ - name : Set modulesync version
25+ run : ruby -ryaml -e 'puts "MSYNC_VER=#{YAML.safe_load(File.read(".msync.yml"))["modulesync_config_version"]}"' >> $GITHUB_ENV
26+ with :
27+ working-directory : modules/${{ env.github_repository }}
28+
29+ - name : Checkout modulesync configuration repository
30+ uses : actions/checkout@v2
31+ with :
32+ # TODO: is there a modulesync variable for this?
33+ repository : voxpupuli/modulesync_config
34+ ref : ${{ env.MSYNC_VER }}
35+ path : msync_config
36+
37+ - name : Create a temporary managed modules file
38+ run : echo "- $GITHUB_REPOSITORY" > msync_config/pr-managed-modules.yaml
39+
40+ - name : Setup ruby
41+ uses : ruby/setup-ruby@v1
42+ with :
43+ ruby-version : ' 3.0'
44+ bundler-cache : true
45+ path : msync_config
46+
47+ - name : Run modulesync
48+ run : bundle exec msync update --offline --managed-modules-conf=pr-managed-modules.yaml --project-root=../modules
49+ with :
50+ working-directory : msync_config
51+
52+ # TODO: does this actually fail the build?
53+ - name : Check for differences
54+ run : git diff
55+ with :
56+ working-directory : modules/${{ env.github_repository }}
You can’t perform that action at this time.
0 commit comments