Skip to content

Commit

Permalink
ci-pipline reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
MKAbdElrahman committed Sep 4, 2024
1 parent e077f3b commit 5f29371
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 46 deletions.
16 changes: 0 additions & 16 deletions .github/actions/setup-environment/action.yaml

This file was deleted.

57 changes: 27 additions & 30 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@ jobs:
name: Lint Application
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Copy GitHub Actions Directory
run: cp -r .github $GITHUB_WORKSPACE/

- name: Setup Environment
uses: ./.github/actions/setup-environment

- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
cache: false
- name: Install Task CLI
uses: arduino/setup-task@v2
with:
version: 3.x
- name: Install GolangCI-Lint
run: task instal-golangci-lint

- name: Run Lint
run: task lint

Expand All @@ -27,15 +26,15 @@ jobs:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Copy GitHub Actions Directory
run: cp -r .github $GITHUB_WORKSPACE/

- name: Setup Environment
uses: ./.github/actions/setup-environment

- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
cache: false
- name: Install Task CLI
uses: arduino/setup-task@v2
with:
version: 3.x
- name: Run Test
run: task test

Expand All @@ -44,23 +43,21 @@ jobs:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Copy GitHub Actions Directory
run: cp -r .github $GITHUB_WORKSPACE/

- name: Setup Environment
uses: ./.github/actions/setup-environment

- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
cache: false
- name: Install Task CLI
uses: arduino/setup-task@v2
with:
version: 3.x
- name: Build
run: task build

- name: Copy Files
run: |
mkdir artifacts
cp bin/linux_amd64/api artifacts/.
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 5f29371

Please sign in to comment.