ci: consistently capitalize job names

This commit is contained in:
link2xt
2023-02-11 16:06:32 +00:00
parent 7f313c803e
commit 51ee564246
5 changed files with 32 additions and 32 deletions

View File

@@ -88,30 +88,30 @@ jobs:
- name: Cache rust cargo artifacts - name: Cache rust cargo artifacts
uses: swatinem/rust-cache@v2 uses: swatinem/rust-cache@v2
- name: check - name: Check
run: cargo check --all --bins --examples --tests --benches run: cargo check --all --bins --examples --tests --benches
- name: tests - name: Tests
run: cargo test --all run: cargo test --all
- name: test cargo vendor - name: Test cargo vendor
run: cargo vendor run: cargo vendor
- name: install python - name: Install python
if: ${{ matrix.python }} if: ${{ matrix.python }}
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python }} python-version: ${{ matrix.python }}
- name: install tox - name: Install tox
if: ${{ matrix.python }} if: ${{ matrix.python }}
run: pip install tox run: pip install tox
- name: build C library - name: Build C library
if: ${{ matrix.python }} if: ${{ matrix.python }}
run: cargo build -p deltachat_ffi --features jsonrpc run: cargo build -p deltachat_ffi --features jsonrpc
- name: run python tests - name: Run python tests
if: ${{ matrix.python }} if: ${{ matrix.python }}
env: env:
DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }} DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }}
@@ -120,28 +120,28 @@ jobs:
working-directory: python working-directory: python
run: tox -e lint,mypy,doc,py3 run: tox -e lint,mypy,doc,py3
- name: build deltachat-rpc-server - name: Build deltachat-rpc-server
if: ${{ matrix.python }} if: ${{ matrix.python }}
run: cargo build -p deltachat-rpc-server run: cargo build -p deltachat-rpc-server
- name: add deltachat-rpc-server to path - name: Add deltachat-rpc-server to path
if: ${{ matrix.python }} if: ${{ matrix.python }}
run: echo ${{ github.workspace }}/target/debug >> $GITHUB_PATH run: echo ${{ github.workspace }}/target/debug >> $GITHUB_PATH
- name: run deltachat-rpc-client tests - name: Run deltachat-rpc-client tests
if: ${{ matrix.python }} if: ${{ matrix.python }}
env: env:
DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }} DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }}
working-directory: deltachat-rpc-client working-directory: deltachat-rpc-client
run: tox -e py3,lint run: tox -e py3,lint
- name: install pypy - name: Install pypy
if: ${{ matrix.python }} if: ${{ matrix.python }}
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: 'pypy${{ matrix.python }}' python-version: 'pypy${{ matrix.python }}'
- name: run pypy tests - name: Run pypy tests
if: ${{ matrix.python }} if: ${{ matrix.python }}
env: env:
DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }} DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }}

View File

@@ -12,14 +12,14 @@ jobs:
name: 'Package @deltachat/jsonrpc-client and upload to download.delta.chat' name: 'Package @deltachat/jsonrpc-client and upload to download.delta.chat'
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- name: install tree - name: Install tree
run: sudo apt install tree run: sudo apt install tree
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: '16' node-version: '16'
- name: get tag - name: Get tag
id: tag id: tag
uses: dawidd6/action-get-tag@v1 uses: dawidd6/action-get-tag@v1
continue-on-error: true continue-on-error: true
@@ -38,11 +38,11 @@ jobs:
npm --version npm --version
node --version node --version
echo $DELTACHAT_JSONRPC_TAR_GZ echo $DELTACHAT_JSONRPC_TAR_GZ
- name: install dependencies without running scripts - name: Install dependencies without running scripts
run: | run: |
cd deltachat-jsonrpc/typescript cd deltachat-jsonrpc/typescript
npm install --ignore-scripts npm install --ignore-scripts
- name: package - name: Package
shell: bash shell: bash
run: | run: |
cd deltachat-jsonrpc/typescript cd deltachat-jsonrpc/typescript
@@ -65,7 +65,7 @@ jobs:
chmod 600 __TEMP_INPUT_KEY_FILE chmod 600 __TEMP_INPUT_KEY_FILE
scp -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE -P "22" -r deltachat-jsonrpc/typescript/$DELTACHAT_JSONRPC_TAR_GZ "${{ secrets.USERNAME }}"@"download.delta.chat":"/var/www/html/download/node/preview/" scp -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE -P "22" -r deltachat-jsonrpc/typescript/$DELTACHAT_JSONRPC_TAR_GZ "${{ secrets.USERNAME }}"@"download.delta.chat":"/var/www/html/download/node/preview/"
continue-on-error: true continue-on-error: true
- name: "Post links to details" - name: Post links to details
if: steps.upload-preview.outcome == 'success' if: steps.upload-preview.outcome == 'success'
run: node ./node/scripts/postLinksToDetails.js run: node ./node/scripts/postLinksToDetails.js
env: env:

View File

@@ -9,7 +9,7 @@ on:
jobs: jobs:
prebuild: prebuild:
name: 'prebuild' name: Prebuild
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
@@ -65,17 +65,17 @@ jobs:
pack-module: pack-module:
needs: prebuild needs: prebuild
name: 'Package deltachat-node and upload to download.delta.chat' name: Package deltachat-node and upload to download.delta.chat
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- name: install tree - name: Install tree
run: sudo apt install tree run: sudo apt install tree
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: '16' node-version: '16'
- name: get tag - name: Get tag
id: tag id: tag
uses: dawidd6/action-get-tag@v1 uses: dawidd6/action-get-tag@v1
continue-on-error: true continue-on-error: true
@@ -97,15 +97,15 @@ jobs:
npm --version npm --version
node --version node --version
echo $DELTACHAT_NODE_TAR_GZ echo $DELTACHAT_NODE_TAR_GZ
- name: Download ubuntu prebuild - name: Download Ubuntu prebuild
uses: actions/download-artifact@v1 uses: actions/download-artifact@v1
with: with:
name: ubuntu-18.04 name: ubuntu-18.04
- name: Download macos prebuild - name: Download macOS prebuild
uses: actions/download-artifact@v1 uses: actions/download-artifact@v1
with: with:
name: macos-latest name: macos-latest
- name: Download windows prebuild - name: Download Windows prebuild
uses: actions/download-artifact@v1 uses: actions/download-artifact@v1
with: with:
name: windows-latest name: windows-latest
@@ -117,23 +117,23 @@ jobs:
tar -xvzf windows-latest/windows-latest.tar.gz -C node/prebuilds tar -xvzf windows-latest/windows-latest.tar.gz -C node/prebuilds
tree node/prebuilds tree node/prebuilds
rm -rf ubuntu-18.04 macos-latest windows-latest rm -rf ubuntu-18.04 macos-latest windows-latest
- name: install dependencies without running scripts - name: Install dependencies without running scripts
run: | run: |
npm install --ignore-scripts npm install --ignore-scripts
- name: build constants - name: Build constants
run: | run: |
npm run build:core:constants npm run build:core:constants
- name: build typescript part - name: Build TypeScript part
run: | run: |
npm run build:bindings:ts npm run build:bindings:ts
- name: package - name: Package
shell: bash shell: bash
run: | run: |
mv node/README.md README.md mv node/README.md README.md
npm pack . npm pack .
ls -lah ls -lah
mv $(find deltachat-node-*) $DELTACHAT_NODE_TAR_GZ mv $(find deltachat-node-*) $DELTACHAT_NODE_TAR_GZ
- name: Upload Prebuild - name: Upload prebuild
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: deltachat-node.tgz name: deltachat-node.tgz
@@ -148,7 +148,7 @@ jobs:
chmod 600 __TEMP_INPUT_KEY_FILE chmod 600 __TEMP_INPUT_KEY_FILE
scp -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE -P "22" -r $DELTACHAT_NODE_TAR_GZ "${{ secrets.USERNAME }}"@"download.delta.chat":"/var/www/html/download/node/preview/" scp -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE -P "22" -r $DELTACHAT_NODE_TAR_GZ "${{ secrets.USERNAME }}"@"download.delta.chat":"/var/www/html/download/node/preview/"
continue-on-error: true continue-on-error: true
- name: "Post links to details" - name: Post links to details
if: steps.upload-preview.outcome == 'success' if: steps.upload-preview.outcome == 'success'
run: node ./node/scripts/postLinksToDetails.js run: node ./node/scripts/postLinksToDetails.js
env: env:

View File

@@ -9,7 +9,7 @@ on:
jobs: jobs:
tests: tests:
name: 'tests' name: Tests
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:

View File

@@ -13,7 +13,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: build - name: Build
run: cargo build -p deltachat-repl --features vendored run: cargo build -p deltachat-repl --features vendored
- name: Upload binary - name: Upload binary