2024-12-02 16:41:02 +00:00
|
|
|
name: devranta build
|
|
|
|
run-name: devranta async devRant api client build and test
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
2024-12-03 03:02:36 +00:00
|
|
|
Build:
|
2024-12-02 16:41:02 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v4
|
2024-12-03 17:52:46 +00:00
|
|
|
- name: Pull repo
|
|
|
|
run: git pull
|
2024-12-02 16:41:02 +00:00
|
|
|
- name: List files in the repository
|
|
|
|
run: |
|
|
|
|
ls ${{ gitea.workspace }}
|
2024-12-03 03:02:36 +00:00
|
|
|
- name: Build new package
|
2024-12-03 03:08:16 +00:00
|
|
|
run: make build
|
2024-12-03 03:02:36 +00:00
|
|
|
- name: Install package
|
2024-12-03 03:08:16 +00:00
|
|
|
run: make install
|
2024-12-03 03:02:36 +00:00
|
|
|
- name: Run application
|
2024-12-03 03:08:16 +00:00
|
|
|
run: make run
|
2024-12-03 03:02:36 +00:00
|
|
|
- name: Test application
|
2024-12-03 03:08:16 +00:00
|
|
|
run: make test
|
2024-12-03 03:02:36 +00:00
|
|
|
- name: Push new packages
|
2024-12-03 17:58:28 +00:00
|
|
|
run: |
|
|
|
|
git add .
|
|
|
|
git config --global user.email "bot@molodetz.com"
|
|
|
|
git config --global user.name "bot"
|
|
|
|
git commit -a -m "New build."
|
|
|
|
git push
|
2024-12-02 16:49:20 +00:00
|
|
|
|