Skip to content

Commit

Permalink
Merge pull request #550 from dmunozv04/update-actions
Browse files Browse the repository at this point in the history
Update actions versions
  • Loading branch information
aarranz authored Oct 16, 2024
2 parents 2a25766 + 2d29830 commit 1d01a52
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@ on:
pull_request_target:
types: [opened,closed,synchronize]

# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
permissions:
actions: write
contents: write # this can be 'read' if the signatures are in remote repository
pull-requests: write
statuses: write

jobs:
CLAssistant:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
uses: cla-assistant/github-action@v2.1.1-beta
uses: contributor-assistant/github-action@v2.5.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# the below token should have repo scope and must be manually added by you in the repository's secret
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ jobs:

js-unit-tests:

runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
- name: Setup and run tests
working-directory: ./src
run: |
npm ci
npm install grunt-cli -g
grunt ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@release/v2
with:
github-token: ${{ secrets.github_token }}
flag-name: browsers
Expand All @@ -38,27 +38,27 @@ jobs:

build:

runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Build
working-directory: ./src
run: ./setup.py bdist_wheel
- name: Upload build wheel
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheel
path: src/dist/*.whl


django-unit-tests:

runs-on: ubuntu-20.04
runs-on: ubuntu-latest

strategy:
matrix:
Expand All @@ -77,9 +77,9 @@ jobs:
- name: Setup PostgreSQL
run: |
docker run --rm -e POSTGRES_DB=postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=wirecloud -d -p 5432:5432 --name postgres-wirecloud postgres:latest
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
Expand All @@ -105,7 +105,7 @@ jobs:

django-search-indexes-tests:

runs-on: ubuntu-20.04
runs-on: ubuntu-latest

strategy:
matrix:
Expand All @@ -117,9 +117,9 @@ jobs:
- name: Setup PostgreSQL
run: |
docker run --rm -e POSTGRES_DB=postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=wirecloud -d -p 5432:5432 --name postgres-wirecloud postgres:latest
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Use Elasticsearch
Expand Down Expand Up @@ -169,17 +169,17 @@ jobs:

django-selenium-tests:

runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Setup PostgreSQL
run: |
docker run --rm -e POSTGRES_DB=postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=wirecloud -d -p 5432:5432 --name postgres-wirecloud postgres:latest
- name: Use Geckodriver
uses: browser-actions/setup-geckodriver@latest
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Use Elasticsearch
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
- django-selenium-tests
- js-unit-tests

runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Coveralls Finished
Expand Down

0 comments on commit 1d01a52

Please sign in to comment.