dev #6
							
								
								
									
										14
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
								
							@@ -1,14 +0,0 @@
 | 
				
			|||||||
# Set the default behavior, in case people don't have core.autocrlf set.
 | 
					 | 
				
			||||||
* text=auto eol=lf
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Explicitly declare text files you want to always be normalized and converted
 | 
					 | 
				
			||||||
# to native line endings on checkout.
 | 
					 | 
				
			||||||
*.pm text eol=lf
 | 
					 | 
				
			||||||
*.pl text eol=lf
 | 
					 | 
				
			||||||
*.hash text eol=lf
 | 
					 | 
				
			||||||
*.txt text eol=lf
 | 
					 | 
				
			||||||
*.sh text eol=lf
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Denote all files that are truly binary and should not be modified.
 | 
					 | 
				
			||||||
*.hex binary
 | 
					 | 
				
			||||||
*.bin binary
 | 
					 | 
				
			||||||
							
								
								
									
										7
									
								
								.github/dependabot.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/dependabot.yml
									
									
									
									
										vendored
									
									
								
							@@ -1,7 +0,0 @@
 | 
				
			|||||||
version: 2
 | 
					 | 
				
			||||||
updates:
 | 
					 | 
				
			||||||
  # Maintain dependencies for GitHub Actions
 | 
					 | 
				
			||||||
  - package-ecosystem: "github-actions"
 | 
					 | 
				
			||||||
    directory: "/"
 | 
					 | 
				
			||||||
    schedule:
 | 
					 | 
				
			||||||
      interval: "weekly"
 | 
					 | 
				
			||||||
							
								
								
									
										97
									
								
								.github/workflows/fhem_test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										97
									
								
								.github/workflows/fhem_test.yml
									
									
									
									
										vendored
									
									
								
							@@ -1,97 +0,0 @@
 | 
				
			|||||||
name: Fhem UnitTest
 | 
					 | 
				
			||||||
on:
 | 
					 | 
				
			||||||
  push:
 | 
					 | 
				
			||||||
    branches:
 | 
					 | 
				
			||||||
    paths:
 | 
					 | 
				
			||||||
      - 'FHEM/**'
 | 
					 | 
				
			||||||
      - 'UnitTest/**'
 | 
					 | 
				
			||||||
      - 't/**'
 | 
					 | 
				
			||||||
      - '.github/workflows/fhem_test.yml'
 | 
					 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  schedule:
 | 
					 | 
				
			||||||
    - cron: '43 17 * * 1'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
jobs:
 | 
					 | 
				
			||||||
  update_controls:
 | 
					 | 
				
			||||||
    env:
 | 
					 | 
				
			||||||
      CONTROLS_FILENAME: controls_${{ github.event.repository.name }}.txt
 | 
					 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					 | 
				
			||||||
    steps:
 | 
					 | 
				
			||||||
    - name: Extract branch name
 | 
					 | 
				
			||||||
      run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/*/})"
 | 
					 | 
				
			||||||
      id: extract_branch
 | 
					 | 
				
			||||||
    - name: Checkout Repostory
 | 
					 | 
				
			||||||
      uses: actions/checkout@v3
 | 
					 | 
				
			||||||
      with:
 | 
					 | 
				
			||||||
        fetch-depth: 0
 | 
					 | 
				
			||||||
    - name: update controls files
 | 
					 | 
				
			||||||
      uses: fhem/fhem-controls-actions@v2
 | 
					 | 
				
			||||||
      with:
 | 
					 | 
				
			||||||
        filename: ${{env.CONTROLS_FILENAME}} 
 | 
					 | 
				
			||||||
    - name: update CHANGED
 | 
					 | 
				
			||||||
      run: |
 | 
					 | 
				
			||||||
        LOG=$(date +"%Y-%m-%d") 
 | 
					 | 
				
			||||||
        LOG+=" - $(git log -1 --pretty=%B)"
 | 
					 | 
				
			||||||
        echo "$LOG" | cat - CHANGED  2>/dev/null >> temp || true  && mv temp CHANGED
 | 
					 | 
				
			||||||
    - name: git commit back
 | 
					 | 
				
			||||||
      run: |
 | 
					 | 
				
			||||||
        git config --global user.email "action@github.com"
 | 
					 | 
				
			||||||
        git config --local user.name "GitHub Action"
 | 
					 | 
				
			||||||
        git add  CHANGED ${{env.CONTROLS_FILENAME}}  || true
 | 
					 | 
				
			||||||
        git log -1 --name-only --pretty=format: | grep -Eo '[0-9]{2}_.*.pm$' && git commit CHANGED ${{env.CONTROLS_FILENAME}}  -m "Automatic updated controls and CHANGED" || true
 | 
					 | 
				
			||||||
    - name: git push
 | 
					 | 
				
			||||||
      uses: ad-m/github-push-action@v0.6.0
 | 
					 | 
				
			||||||
      with:
 | 
					 | 
				
			||||||
        github_token: ${{ secrets.GITHUB_TOKEN }}
 | 
					 | 
				
			||||||
        branch: ${{ steps.extract_branch.outputs.branch }}
 | 
					 | 
				
			||||||
#  test:
 | 
					 | 
				
			||||||
#    runs-on: ubuntu-latest
 | 
					 | 
				
			||||||
#    if: github.event_name == 'push'
 | 
					 | 
				
			||||||
#    strategy:
 | 
					 | 
				
			||||||
#      matrix:
 | 
					 | 
				
			||||||
#        os: ['ubuntu-latest']
 | 
					 | 
				
			||||||
#        perl: [ '5.22', '5.28', '5.30', '5.32' ]
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
#    name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
 | 
					 | 
				
			||||||
#    steps:
 | 
					 | 
				
			||||||
#    - uses: actions/checkout@v3
 | 
					 | 
				
			||||||
#    - uses: shogo82148/actions-setup-perl@v1.18.0
 | 
					 | 
				
			||||||
#      with:
 | 
					 | 
				
			||||||
#        perl-version: ${{ matrix.perl }}
 | 
					 | 
				
			||||||
#        install-modules-with: cpanm
 | 
					 | 
				
			||||||
#        install-modules-args: --notest
 | 
					 | 
				
			||||||
#    - name: install fhem via deb package
 | 
					 | 
				
			||||||
#      run: |
 | 
					 | 
				
			||||||
#        wget -qO - http://debian.fhem.de/archive.key | sudo apt-key add -
 | 
					 | 
				
			||||||
#        echo "deb http://debian.fhem.de/nightly/ /" | sudo tee -a /etc/apt/sources.list
 | 
					 | 
				
			||||||
#        sudo apt-get update -qq
 | 
					 | 
				
			||||||
#        sudo apt-get install fhem -y
 | 
					 | 
				
			||||||
#        sudo systemctl stop fhem
 | 
					 | 
				
			||||||
#        sudo chown -R --reference=README.md /opt/fhem
 | 
					 | 
				
			||||||
##    - name: run prove on perl modules (testscripts)
 | 
					 | 
				
			||||||
##      run: prove --exec 'perl -MDevel::Cover=-silent,1 -I FHEM ' -I FHEM -r -vv t/FHEM/<packagename>
 | 
					 | 
				
			||||||
##    - uses: codecov/codecov-action@v1
 | 
					 | 
				
			||||||
##      with:
 | 
					 | 
				
			||||||
##        token: ${{ secrets.CODECOV_TOKEN }}
 | 
					 | 
				
			||||||
##        file: ./cover_db/clover.xml
 | 
					 | 
				
			||||||
##        flags: unittests,perl,modules
 | 
					 | 
				
			||||||
##        name: perl modules (testscripts) ${{ matrix.perl }}
 | 
					 | 
				
			||||||
#    - name: run prove fhem testsuite ${{ matrix.perl }} on modules
 | 
					 | 
				
			||||||
#      run: |
 | 
					 | 
				
			||||||
#        cp -r FHEM/* ${FHEM_DIR}/FHEM/
 | 
					 | 
				
			||||||
#        cd ${FHEM_DIR}
 | 
					 | 
				
			||||||
#        prove --exec 'perl -MDevel::Cover=-silent,1 fhem.pl -t' -I FHEM -r -vv ${GITHUB_WORKSPACE}/t/FHEM/98_Matrix/[0-9][0-9]_*/
 | 
					 | 
				
			||||||
#        sleep 3
 | 
					 | 
				
			||||||
#        cp -R /opt/fhem/cover_db ${GITHUB_WORKSPACE}/
 | 
					 | 
				
			||||||
#        ls -l ${GITHUB_WORKSPACE}
 | 
					 | 
				
			||||||
#      env:
 | 
					 | 
				
			||||||
#        FHEM_DIR: /opt/fhem
 | 
					 | 
				
			||||||
#    - name: Create clover report  
 | 
					 | 
				
			||||||
#      run: cover -report clover
 | 
					 | 
				
			||||||
##    - uses: codecov/codecov-action@v1
 | 
					 | 
				
			||||||
##      with:
 | 
					 | 
				
			||||||
##        token: ${{ secrets.CODECOV_TOKEN }}
 | 
					 | 
				
			||||||
##        file: ./cover_db/clover.xml
 | 
					 | 
				
			||||||
##        flags: unittests,fhem,modules
 | 
					 | 
				
			||||||
##        name: fhem (testscripts) ${{ matrix.perl }}
 | 
					 | 
				
			||||||
  
 | 
					 | 
				
			||||||
							
								
								
									
										34
									
								
								.github/workflows/perlCritic.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										34
									
								
								.github/workflows/perlCritic.yml
									
									
									
									
										vendored
									
									
								
							@@ -1,34 +0,0 @@
 | 
				
			|||||||
name: Perlcritic check
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
on:
 | 
					 | 
				
			||||||
  pull_request:
 | 
					 | 
				
			||||||
    types: [opened, synchronize]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
jobs:
 | 
					 | 
				
			||||||
  critic:
 | 
					 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					 | 
				
			||||||
    if: github.event_name == 'pull_request'
 | 
					 | 
				
			||||||
    steps:
 | 
					 | 
				
			||||||
    - name: Checkout repository
 | 
					 | 
				
			||||||
      uses: actions/checkout@v3
 | 
					 | 
				
			||||||
    - uses: shogo82148/actions-setup-perl@v1.18.0
 | 
					 | 
				
			||||||
      with:
 | 
					 | 
				
			||||||
        perl-version: 5.32
 | 
					 | 
				
			||||||
        install-modules-with: cpanm
 | 
					 | 
				
			||||||
        install-modules: Perl::Critic Task::PerlCriticAllPolicies 
 | 
					 | 
				
			||||||
        install-modules-args: --notest
 | 
					 | 
				
			||||||
    - uses: reviewdog/action-setup@v1
 | 
					 | 
				
			||||||
      with:
 | 
					 | 
				
			||||||
        reviewdog_version: latest # Optional. [latest,nightly,v.X.Y.Z]
 | 
					 | 
				
			||||||
    - name: run perlcritic and send report via reviewdog
 | 
					 | 
				
			||||||
      env:
 | 
					 | 
				
			||||||
        REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
					 | 
				
			||||||
      run: |
 | 
					 | 
				
			||||||
        (perlcritic --verbose 1 --profile .perlcritic ./FHEM; perlcritic --verbose 1 --profile .perlcritic ./lib; ) | \
 | 
					 | 
				
			||||||
          reviewdog -efm '%f:%l:%c:%m' \
 | 
					 | 
				
			||||||
            -name="perlcritic" \
 | 
					 | 
				
			||||||
            -reporter="github-pr-check" \
 | 
					 | 
				
			||||||
            -filter-mode="added" \
 | 
					 | 
				
			||||||
            -fail-on-error="false" \
 | 
					 | 
				
			||||||
            -level="warning" \
 | 
					 | 
				
			||||||
@@ -1,2 +0,0 @@
 | 
				
			|||||||
severity        = 5
 | 
					 | 
				
			||||||
color           = 1
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user