Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to project and simplify private modules in CI #169

Merged
merged 3 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Adds all issues to the project board

on:
issues:
types:
- opened

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@RELEASE_VERSION
with:
project-url: https://github.com/orgs/platformsh/projects/4
# Token creation details: https://github.com/actions/add-to-project?tab=readme-ov-file#creating-a-pat-and-adding-it-to-your-repository
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
7 changes: 0 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ permissions:
jobs:
test:
runs-on: ubuntu-latest
env:
GOPRIVATE: github.com/platformsh/platformify

steps:
- name: Check out repository code
Expand All @@ -26,11 +24,6 @@ jobs:
# has its own internal cache with better performance
go-version: 1.20.x

- name: Configure git for private modules
env:
TOKEN: ${{ secrets.AKALIPETIS_PAT }}
run: git config --global url."https://akalipetis:${TOKEN}@github.com".insteadOf "https://github.com"

- name: Create fake PHP and .phar files
run: |
# These are needed so that the linter does not complain
Expand Down
6 changes: 0 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ stages:
variables:
GOPATH: $CI_PROJECT_DIR/.go
before_script:
- git config --global url."ssh://[email protected]/".insteadOf "https://github.com/"
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
- echo 'github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl' >> ~/.ssh/known_hosts
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
- echo "$SSH_PUBLIC_KEY" > ~/.ssh/id_ed25519.pub
- chmod 400 ~/.ssh/id_*
- mkdir -p .go
- export PATH=$PATH:$GOPATH/bin
cache:
Expand Down
Loading