I’m trying to use the github actions for first time, I’ve created and followed the tutorial from github and my .github/workflows/push_main.yml
is :
name: Android CI
on:
push:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: set up JDK 11
uses: actions/[email protected]
with:
java-version: 11
# Runs ktlint
- name: Lint
run: ./gradlew ktlintCheck
# Execute unit tests
- name: Unit Test
run: ./gradlew testDebugUnitTest
Also what I’d like to have is when trying to do a rebase or merge to main
have this check and if it works then keep the action of rebase
or merge
I thought to do something like, create a temporal branch do the check there and if it works do the rebase
or merge
into main and then delete the temporal branch but I don’t know if there’s any other efficient way to do so. Also I’ve seen that I can run the jobs in parallel will it make it faster?
1
Hi StuartDTO. What problem are you facing at the moment? What is the error on your workflow run and how can we reproduce it? (Note: It’s probably not related, but I observed you’re currently using the
actions/[email protected]
at the beginning how your workflow, but this version is outdated, you should useactions/[email protected]
).