From 149e0c656142f3b11805d15723122ba266df6c74 Mon Sep 17 00:00:00 2001 From: ryndaniels Date: Tue, 28 May 2024 16:44:48 +0300 Subject: [PATCH 1/4] migrate from travis to gha --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 10 ---------- 2 files changed, 30 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b55c0ea --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: mapbox/spark-cloudfront-costs +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + strategy: + matrix: + node-version: [14, 16, 18] + runs-on: ubuntu-22.04 + permissions: + id-token: write + contents: read + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.7.9' + - name: pip install + run: | + pip install -r requirements.dev.txt + - id: action-node-setup + uses: mapbox/gha@action-node-setup-v1 + with: + node-version: ${{ matrix.node-version }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index dd8d861..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -dist: focal -language: node_js -node_js: -- 14 -- 16 -- 18 -before_install: -- pyenv install 3.7.9 -- pyenv global 3.7.9 -- pip install -r requirements.dev.txt From 9bb7788e62f972c244c4f67b82c39321d67a112f Mon Sep 17 00:00:00 2001 From: ryndaniels Date: Tue, 28 May 2024 16:47:04 +0300 Subject: [PATCH 2/4] fix copypaste errors --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b55c0ea..04da8f9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,11 +1,11 @@ -name: mapbox/spark-cloudfront-costs +name: mapbox/cloudfriend on: push: branches: - - main + - master pull_request: branches: - - main + - master jobs: test: From 5e41a2eb7eff10694d71ebffb20c4dd6482d477a Mon Sep 17 00:00:00 2001 From: ryndaniels Date: Mon, 17 Jun 2024 16:26:03 +0300 Subject: [PATCH 3/4] use public actions --- .github/workflows/test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 04da8f9..452e3f3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,10 @@ jobs: - name: pip install run: | pip install -r requirements.dev.txt - - id: action-node-setup - uses: mapbox/gha@action-node-setup-v1 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} + - run: | + npm ci + - run: | + npm run test From 465cad9be0f2a8375d53128bc211f7721e21475b Mon Sep 17 00:00:00 2001 From: ryndaniels Date: Mon, 17 Jun 2024 16:27:26 +0300 Subject: [PATCH 4/4] fix python version --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 452e3f3..7e753c6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.7.9' + python-version: '3.7.17' - name: pip install run: | pip install -r requirements.dev.txt