Skip to content

Commit

Permalink
updated to actual versions in ci pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-mohr committed Oct 13, 2023
1 parent 79eb811 commit e0a1501
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# https://github.com/marketplace/actions/setup-python
- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
# https://github.com/pre-commit/action
- uses: pre-commit/[email protected]

cppcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: install dependencies
run: |
sudo apt-get update
Expand All @@ -30,7 +30,8 @@ jobs:
arduino-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# https://github.com/marketplace/actions/arduino-arduino-lint-action
- uses: arduino/arduino-lint-action@v1
with:
library-manager: update
Expand All @@ -40,7 +41,7 @@ jobs:
needs: [pre-commit, arduino-lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: install dependencies
run: |
echo "source 'https://rubygems.org'" > Gemfile
Expand All @@ -61,7 +62,8 @@ jobs:
needs: [pre-commit, arduino-lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# https://github.com/marketplace/actions/setup-arduino-cli
- uses: arduino/setup-arduino-cli@v1
- name: prepare arduino-cli
run: |
Expand All @@ -87,13 +89,14 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: set parameter as env
run: |
echo "commit=$GITHUB_SHA" >> $GITHUB_ENV
echo "tag=$(grep version library.properties | cut -d "=" -f 2)" >> $GITHUB_ENV
echo "body="$(grep sentence library.properties | cut -d "=" -f 2) $(grep paragraph library.properties | cut -d '=' -f 2)"" >> $GITHUB_ENV
cat $GITHUB_ENV
# https://github.com/ncipollo/release-action
- uses: ncipollo/release-action@v1
with:
makeLatest: true
Expand All @@ -106,7 +109,7 @@ jobs:
needs: [release_job]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: get repo
env:
backup_repo: ${{ secrets.backup_repo }}
Expand Down
7 changes: 7 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pre-commit:
name: alpine:latest
script:
- date
- cat /etc/os-release
# install necessary packages:
- apk add --no-cache bash gcc git libc-dev npm py3-pip python3-dev
- pip3 install pre-commit
Expand All @@ -28,6 +29,7 @@ cppcheck:
name: alpine:latest
script:
- date
- cat /etc/os-release
# install necessary packages:
- apk add --no-cache cppcheck
- cppcheck --suppress="*:test/*" --enable=warning,portability,information --error-exitcode=1 --language=c++ $(find -iname "*.ino") $(find -iname "*.cpp") $(find -iname "*.h")
Expand All @@ -39,6 +41,7 @@ arduino-lint:
name: debian:latest
script:
- date
- cat /etc/os-release
- apt-get update
- $APT_GET_INSTALL curl ca-certificates
- (cd && curl -fsSL https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/install.sh | sh)
Expand All @@ -52,6 +55,7 @@ arduino_ci:
name: debian:latest
script:
- date
- cat /etc/os-release
- apt-get update
- $APT_GET_INSTALL ruby build-essential
- gem install bundler arduino_ci
Expand All @@ -68,6 +72,7 @@ arduino-cli:
name: debian:latest
script:
- date
- cat /etc/os-release
- apt-get update
- $APT_GET_INSTALL curl ca-certificates parallel
- (cd && curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh)
Expand Down Expand Up @@ -95,6 +100,7 @@ prepare_release:
name: alpine:latest
script:
- date
- cat /etc/os-release
- cat library.properties
- echo "EXTRA_DESCRIPTION=$(grep sentence library.properties | cut -d "=" -f 2) $(grep paragraph library.properties | cut -d '=' -f 2)" > variables.env
- echo "TAG=$(grep version library.properties | cut -d "=" -f 2)" >> variables.env
Expand All @@ -117,6 +123,7 @@ release_job:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script:
- date
- cat /etc/os-release
- echo "running release_job for $TAG"
release:
name: 'Release $TAG'
Expand Down

0 comments on commit e0a1501

Please sign in to comment.