Skip to content

build(deps): bump actions/checkout from 3 to 4 #403

build(deps): bump actions/checkout from 3 to 4

build(deps): bump actions/checkout from 3 to 4 #403

Workflow file for this run

---
name: Lint
on:
pull_request:
branches:
- master
jobs:
lint_editorconfig:
name: Lint EditorConfig
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout changes
uses: actions/checkout@v4
- name: Lint EditorConfig
run: |
npm install -g eclint
eclint check
shell: bash
lint_markdown:
name: Lint Markdown
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout changes
uses: actions/checkout@v4
- name: Lint Markdown
uses: nosborn/[email protected]
with:
files: .
ignore_files: CHANGELOG.md
lint_yaml:
name: Lint Yaml
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout changes
uses: actions/checkout@v4
- name: Lint Yaml
uses: ibiqlik/action-yamllint@master
with:
strict: true
config_data: |
extends: default
rules:
line-length:
max: 120
level: warning
truthy:
allowed-values: ['true', 'false', 'on']
lint_python:
name: Lint Python
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout changes
uses: actions/checkout@v4
- name: Lint Python
uses: andymckay/[email protected]
lint_java:
name: Lint Java/Android
runs-on: macos-latest
timeout-minutes: 20
strategy:
matrix:
golang:
- 1.18
steps:
- name: Checkout changes
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.golang }}
- name: Set GOPATH in env
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
mkdir -p $(go env GOPATH)/src/github.com/ipfs-shipyard
ln -s $PWD $(go env GOPATH)/src/github.com/ipfs-shipyard/gomobile-ipfs
shell: bash
- name: Restore Go mod cache
id: cache
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('go/go.sum') }}
- name: Install Java
uses: actions/setup-java@v3
with:
java-version: 1.8
- name: Set TARGET_SDK in env
run: |
pip3 install -r utils/manifest_get/requirements.txt
export GET_BIN=utils/manifest_get/manifest_get.py
export GET_KEY=global.android.target_sdk_version
echo "TARGET_SDK=$($GET_BIN $GET_KEY)" >> $GITHUB_ENV
- name: Install Android SDK
run: |
SDK_MAN=$HOME/Library/Android/sdk/tools/bin/sdkmanager;
BTOOLS=$($SDK_MAN --list | grep "build-tools;$TARGET_SDK");
BTOOL=$(echo $BTOOLS | tail -n1 | cut -d'|' -f1 | tr -d ' ');
PLATFORMS=$($SDK_MAN --list | grep "platforms;android-$TARGET_SDK");
PLATFORM=$(echo $PLATFORMS | tail -n1 | cut -d'|' -f1 | tr -d ' ');
$SDK_MAN --install "$BTOOL" platform-tools "$PLATFORM" ndk-bundle
> /dev/null
- name: Install Java 11
uses: actions/setup-java@v3
with:
java-version: 11
- name: Build Go Core
run: make build_core.android GOMOBILE_TARGET=/amd64
- name: Lint Java/Android
working-directory: android
run: ./gradlew lint
lint_swift:
name: Lint Swift
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout changes
uses: actions/checkout@v4
- name: Lint Swift
uses: norio-nomura/[email protected]
with:
args: --strict ios/Bridge/GomobileIPFS
lint_go:
name: Lint Golang
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
golang:
- 1.18
steps:
- name: Checkout changes
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.golang }}
- name: Install GolangCI-Lint
working-directory: go
run: curl -sSfL
https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh
| sh -s v1.50.1
- name: Lint Golang
working-directory: go
run: ./bin/golangci-lint run -D unused --timeout 5m --skip-files deps.go