Merge pull request #165 from ProtonMail/fix-workflows-main

Change workflow settings to run on main branch
This commit is contained in:
wussler 2022-02-15 11:28:27 +01:00 committed by GitHub
commit 0ad4b054c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 7 deletions

View file

@ -2,9 +2,9 @@ name: Gomobile for Android
on: on:
push: push:
branches: [ master ] branches: [ main ]
pull_request: pull_request:
branches: [ master ] branches: [ main ]
jobs: jobs:
build: build:

View file

@ -2,9 +2,9 @@ name: Go test and lint
on: on:
push: push:
branches: [ master ] branches: [ main ]
pull_request: pull_request:
branches: [ master ] branches: [ main ]
jobs: jobs:

View file

@ -2,9 +2,9 @@ name: Gomobile for iOS
on: on:
push: push:
branches: [ master ] branches: [ main ]
pull_request: pull_request:
branches: [ master ] branches: [ main ]
jobs: jobs:
build: build:

View file

@ -44,3 +44,4 @@ linters:
- gomoddirectives # Prohibits the use of replace statements - gomoddirectives # Prohibits the use of replace statements
- varnamelen # Forbids short var names - varnamelen # Forbids short var names
- ireturn # Prevents returning interfaces - ireturn # Prevents returning interfaces
- forcetypeassert # Forces to assert types in tests