README.md update / GitHub action #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR-checker | ||
run-name: ${{ github.actor }} Pull Request - make all | ||
# This allows a subsequently queued workflow run to interrupt previous runs | ||
concurrency: | ||
group: cloud-coap-server-'${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | ||
cancel-in-progress: true | ||
on: [push] | ||
jobs: | ||
make-all: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
PDM_BINARY_ARTIFACTS_DIR: pdm-binary-artifacts | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: "8" | ||
distribution: "temurin" | ||
- name: Cloning pdm-binary-artifacts | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: PelionIoT/pdm-binary-artifacts | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
path: ${{ env.PDM_BINARY_ARTIFACTS_DIR }} | ||
- name: Initializing pdm-binary-artifacts | ||
run: | | ||
cd $PDM_BINARY_ARTIFACTS_DIR | ||
bash init.sh --force | ||
- run: mvn clean install -P ci | ||
pysh-check: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Get scripts internal... | ||
run: | | ||
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github.com/".insteadOf "git@github.com:" | ||
git clone git@github.com:PelionIoT/scripts-internal.git | ||
- name: Run pysh-check | ||
run: | | ||
sudo apt install pycodestyle pydocstyle black | ||
echo "." >scripts-internal/.nopyshcheck | ||
scripts-internal/pysh-check/pysh-check.sh --workdir . |